/* ============================================================
   LOGIN & REGISTRAZIONE — redesign 2026
============================================================ */

.fds-auth-page { background: var(--fds-cream); min-height: 100vh; }
.fds-auth-page .site-footer { margin-top: 0; }

/* Layout due colonne */
.fds-auth-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    min-height: calc(100vh - var(--fds-header-h));
}

/* PANNELLO SINISTRO verde */
.fds-auth-brand {
    background: var(--fds-green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    position: sticky;
    top: var(--fds-header-h);
    height: calc(100vh - var(--fds-header-h));
}
.fds-auth-brand-inner {
    max-width: 380px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fds-auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 8px;
}
.fds-auth-logo img { height: 40px; width: auto; }
.fds-auth-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.02em;
}

.fds-auth-brand-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 0;
}
.fds-auth-brand-sub {
    font-size: .92rem;
    color: rgba(255,255,255,.75);
    line-height: 1.65;
    margin: 0;
}
.fds-auth-brand-quote {
    font-size: .88rem;
    font-style: italic;
    color: var(--fds-green-light);
    border-left: 2px solid var(--fds-green-light);
    padding-left: 14px;
    line-height: 1.5;
}
.fds-auth-brand-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}
.fds-auth-brand-links a {
    font-size: 13px;
    color: rgba(255,255,255,.6);
    text-decoration: none;
    transition: var(--fds-transition);
}
.fds-auth-brand-links a:hover { color: #fff; text-decoration: none; }

/* Benefits registrazione */
.fds-register-benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fds-register-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .88rem;
    color: rgba(255,255,255,.82);
}
.fds-benefit-icon { font-size: 18px; flex-shrink: 0; }

/* PANNELLO DESTRO form */
.fds-auth-form-panel {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 40px;
    overflow-y: auto;
}
.fds-auth-form-wrap {
    width: 100%;
    max-width: 480px;
}
.fds-register-form-wrap { max-width: 560px; }

.fds-auth-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--fds-text);
    margin-bottom: 6px;
}
.fds-auth-sub {
    font-size: .92rem;
    color: var(--fds-text-soft);
    margin-bottom: 28px;
    line-height: 1.55;
}

.fds-auth-error {
    background: #fdecea;
    border: 1px solid #f5c6c0;
    color: #c0392b;
    border-radius: var(--fds-radius);
    padding: 12px 16px;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Form fields */
.fds-auth-form { display: flex; flex-direction: column; gap: 0; }
.fds-auth-field { margin-bottom: 16px; }

.fds-auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--fds-text);
    margin-bottom: 6px;
}
.fds-auth-field input,
.fds-auth-field select,
.fds-auth-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--fds-gray-200);
    border-radius: var(--fds-radius);
    font-size: .93rem;
    font-family: var(--fds-font-sans);
    color: var(--fds-text);
    background: var(--fds-white);
    transition: var(--fds-transition);
    outline: none;
    appearance: none;
}
.fds-auth-field input:focus,
.fds-auth-field select:focus {
    border-color: var(--fds-green);
    box-shadow: 0 0 0 3px rgba(10,107,78,.1);
}

.fds-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Sezioni form registrazione */
.fds-register-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--fds-green);
    border-bottom: 1px solid var(--fds-gray-200);
    padding-bottom: 8px;
    margin: 24px 0 16px;
}

/* Checkbox privacy */
.fds-privacy-row { margin-top: 8px; }
.fds-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .85rem;
    color: var(--fds-text-soft);
    cursor: pointer;
    line-height: 1.5;
}
.fds-checkbox-label input {
    width: auto;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--fds-green);
}
.fds-checkbox-label a { color: var(--fds-green); }

/* Submit */
.fds-auth-submit {
    width: 100%;
    padding: 13px;
    background: var(--fds-green);
    color: #fff;
    border: none;
    border-radius: var(--fds-radius);
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--fds-font-sans);
    cursor: pointer;
    transition: var(--fds-transition);
    margin-top: 8px;
}
.fds-auth-submit:hover {
    background: var(--fds-green-dark);
    box-shadow: 0 4px 14px rgba(10,107,78,.25);
}

/* Footer links */
.fds-auth-footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
    font-size: .88rem;
    flex-wrap: wrap;
}
.fds-auth-footer-links a { color: var(--fds-green); text-decoration: none; }
.fds-auth-footer-links a:hover { text-decoration: underline; }
.fds-auth-divider { color: var(--fds-gray-400); }

/* Nota finale registrazione */
.fds-register-nota {
    font-size: .82rem;
    color: var(--fds-gray-400);
    text-align: center;
    margin-top: 20px;
    line-height: 1.5;
    border-top: 1px solid var(--fds-gray-200);
    padding-top: 16px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .fds-auth-layout { grid-template-columns: 1fr; }
    .fds-auth-brand { position: static; height: auto; padding: 40px 24px; }
    .fds-auth-brand-inner { max-width: 100%; }
    .fds-auth-form-panel { padding: 32px 24px; }
}
@media (max-width: 560px) {
    .fds-form-row-2 { grid-template-columns: 1fr; }
    .fds-auth-form-wrap,
    .fds-register-form-wrap { max-width: 100%; }
}
