﻿/* =============================================
   Login.razor.css
   Layout due colonne: pannello decorativo +
   form card. Responsive: una colonna su mobile.
   ============================================= */

/* ── Root: due colonne ── */

.lp-root {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
}

/* ══════════════════════════════════════════════
   PANNELLO SINISTRO
══════════════════════════════════════════════ */

.lp-panel {
    flex: 1;
    position: relative;
    background: linear-gradient(145deg, #1040b0 0%, #1a56db 45%, #2d6fe0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 48px;
}

/* Blob decorativi */
.lp-panel__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .35;
    pointer-events: none;
}

.lp-panel__blob--1 {
    width: 380px;
    height: 380px;
    background: #6b9ff7;
    top: -80px;
    left: -80px;
}

.lp-panel__blob--2 {
    width: 260px;
    height: 260px;
    background: #25d366;
    bottom: 60px;
    right: -60px;
    opacity: .2;
}

.lp-panel__blob--3 {
    width: 180px;
    height: 180px;
    background: #a78bfa;
    bottom: -40px;
    left: 120px;
    opacity: .25;
}

/* Contenuto pannello */
.lp-panel__content {
    position: relative;
    z-index: 1;
    color: #fff;
    animation: lpFadeUp .6s ease both;
}

.lp-panel__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
}

    .lp-panel__icon svg {
        width: 100%;
        height: 100%;
    }

.lp-panel__title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -.5px;
    margin-bottom: 10px;
    font-family: 'DM Sans', sans-serif;
}

.lp-panel__subtitle {
    font-size: 15px;
    line-height: 1.7;
    opacity: .75;
    margin-bottom: 40px;
    font-weight: 400;
}

/* Features */
.lp-panel__features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lp-panel__feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    opacity: .85;
}

.lp-panel__feature-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #25d366;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(37,211,102,.6);
}

/* ══════════════════════════════════════════════
   PANNELLO DESTRO: form
══════════════════════════════════════════════ */

.lp-form-wrap {
    width: 480px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--its-surface);
    padding: 40px 32px;
}

.lp-form-card {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 0;
    animation: lpFadeUp .5s .1s ease both;
}

/* Logo */
.lp-form-card__logo {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.lp-form-card__logo-img {
    max-height: 240px;
    max-width: 240px;
    object-fit: contain;
}

/* Header */
.lp-form-card__header {
    margin-bottom: 28px;
}

.lp-form-card__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--its-text);
    letter-spacing: -.3px;
    margin-bottom: 6px;
    font-family: 'DM Sans', sans-serif;
}

.lp-form-card__desc {
    font-size: 13.5px;
    color: var(--its-text-muted);
    line-height: 1.5;
}

/* Form */
.lp-form-card__form {
    display: flex;
    flex-direction: column;
}

.lp-field-wrap {
    margin-bottom: 16px;
}

/* Errore */
.lp-error {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(229, 57, 53, .07);
    border: 1px solid rgba(229, 57, 53, .22);
    border-radius: 8px;
    padding: 9px 13px;
    font-size: 13px;
    color: #e53935;
    margin-bottom: 16px;
    animation: lpFadeUp .2s ease both;
}

/* Pulsante */
.lp-btn {
    border-radius: 10px !important;
    height: 50px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: .01em !important;
    box-shadow: 0 4px 14px rgba(26, 86, 219, .35) !important;
    transition: box-shadow .2s ease, transform .1s ease !important;
}

    .lp-btn:not(:disabled):hover {
        box-shadow: 0 6px 20px rgba(26, 86, 219, .45) !important;
        transform: translateY(-1px);
    }

    .lp-btn:not(:disabled):active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(26, 86, 219, .3) !important;
    }

/* Versione */
.lp-form-card__version {
    display: block;
    text-align: center;
    font-size: 10px;
    font-family: 'DM Mono', monospace;
    color: var(--its-text-muted);
    margin-top: 24px;
    opacity: .6;
}

/* ══════════════════════════════════════════════
   ANIMAZIONE
══════════════════════════════════════════════ */

@keyframes lpFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */

/* Tablet: pannello più stretto */
@media (max-width: 1024px) {
    .lp-panel {
        flex: 0 0 40%;
        padding: 40px 32px;
    }

    .lp-panel__title {
        font-size: 28px;
    }

    .lp-form-wrap {
        flex: 1;
        width: auto;
    }
}

/* Mobile: pannello nascosto, solo form centrato */
@media (max-width: 680px) {
    .lp-root {
        flex-direction: column;
    }

    .lp-panel {
        flex: 0 0 auto;
        padding: 32px 24px 28px;
        min-height: 0;
    }

    .lp-panel__features {
        display: none;
    }

    .lp-panel__title {
        font-size: 24px;
        margin-bottom: 6px;
    }

    .lp-panel__subtitle {
        font-size: 13px;
        margin-bottom: 0;
    }

    .lp-panel__icon {
        width: 44px;
        height: 44px;
        margin-bottom: 12px;
    }

    .lp-form-wrap {
        flex: 1;
        width: 100%;
        padding: 32px 20px;
        align-items: flex-start;
    }

    .lp-form-card__logo {
        margin-bottom: 20px;
    }

    .lp-form-card__logo-img {
        max-height: 60px;
    }
}
