/* =========================================================
   Login Page – Split Panel Design
   ========================================================= */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
}

/* ── Wrapper ────────────────────────────────────────────── */
.login-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ── Pannello sinistro ──────────────────────────────────── */
.login-left {
    flex: 0 0 68%;
    background: linear-gradient(135deg, #3b3fce 0%, #5b4fcf 40%, #7b5ea7 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Cerchi decorativi sfondo */
.login-left::before,
.login-left::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.07;
    background: #fff;
}
.login-left::before {
    width: 520px;
    height: 520px;
    bottom: -140px;
    left: -100px;
}
.login-left::after {
    width: 340px;
    height: 340px;
    top: -80px;
    right: -60px;
}

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    z-index: 1;
}

.login-logo {
    max-width: 200px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.login-divider {
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    margin: 22px 0 18px;
}

.login-tagline {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 6px;
}

.login-footer-text {
    position: absolute;
    bottom: 24px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* ── Pannello destro ────────────────────────────────────── */
.login-right {
    flex: 1;
    background: #f7f8fc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
}

.login-card {
    width: 100%;
    max-width: 360px;
}

/* ── Heading ────────────────────────────────────────────── */
.login-welcome {
    font-size: 26px;
    font-weight: 700;
    color: #1a1d2e;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.login-wave {
    font-style: normal;
}

.login-hint {
    font-size: 13.5px;
    color: #8a8fa8;
    margin-bottom: 32px;
}

/* ── Alerts ─────────────────────────────────────────────── */
.login-alert {
    background: #fff0f0;
    border-left: 3px solid #e05252;
    color: #c0392b;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.login-success {
    background: #f0fff4;
    border-left: 3px solid #48bb78;
    color: #276749;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* ── Form ────────────────────────────────────────────────── */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.login-field label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #6b7280;
}

.login-field input {
    padding: 11px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #1a1d2e;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.login-field input::placeholder {
    color: #c4c8d4;
}

.login-field input:focus {
    border-color: #5b4fcf;
    box-shadow: 0 0 0 3px rgba(91, 79, 207, 0.12);
}

/* ── Button ──────────────────────────────────────────────── */
.login-btn {
    margin-top: 8px;
    padding: 13px;
    background: #5b4fcf;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(91, 79, 207, 0.35);
}

.login-btn:hover {
    background: #4a40b8;
    box-shadow: 0 6px 18px rgba(91, 79, 207, 0.45);
}

.login-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(91, 79, 207, 0.3);
}

/* ── Link row sotto il form ─────────────────────────────── */
.login-links {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #8a8fa8;
}

.login-links a {
    color: #5b4fcf;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}

.login-links a:hover { color: #4a40b8; text-decoration: underline; }

.login-links-sep { color: #d1d5db; }

/* Link singolo sotto il form (registrazione, magic link) */
.login-link-row {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #8a8fa8;
}

.login-link-row a {
    color: #5b4fcf;
    text-decoration: none;
    font-weight: 500;
}

.login-link-row a:hover { text-decoration: underline; }

/* ── Info box (avviso attivazione / email inviata) ───────── */
.login-info-box {
    background: #f0f1ff;
    border-left: 3px solid #5b4fcf;
    color: #3730a3;
    font-size: 13px;
    line-height: 1.6;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.login-info-icon { margin-right: 6px; }

/* ── Check / email icon ──────────────────────────────────── */
.login-check-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
    }

    .login-left {
        flex: 0 0 auto;
        min-height: 220px;
        padding: 40px 20px;
    }

    .login-footer-text {
        display: none;
    }

    .login-right {
        padding: 40px 24px;
    }
}
