:root {
    --rs-bg: #edf3eb;
    --rs-ink: #1e2b28;
    --rs-muted: #68756f;
    --rs-green: #3f754b;
    --rs-green-2: #659d70;
    --rs-gold: #a98b37;
    --rs-line: rgba(31, 44, 41, .12);
    --rs-white: rgba(255, 255, 255, .92);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body.rs-auth-body-simple {
    margin: 0;
    font-family: Figtree, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--rs-ink);
    background:
        radial-gradient(circle at 12% 10%, rgba(184, 154, 63, .22), transparent 28%),
        radial-gradient(circle at 82% 16%, rgba(63, 117, 75, .20), transparent 31%),
        linear-gradient(135deg, #f9f6ea 0%, #eef5ed 52%, #dfeadd 100%);
}

.rs-auth-stage-simple {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px 20px;
}

.rs-auth-card-simple {
    width: min(760px, 100%);
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 4vw, 52px);
    border-radius: 36px;
    border: 1px solid rgba(255, 255, 255, .76);
    background:
        radial-gradient(circle at 100% 0%, rgba(101, 157, 112, .12), transparent 34%),
        radial-gradient(circle at 0% 100%, rgba(184, 154, 63, .10), transparent 35%),
        rgba(255, 255, 255, .86);
    box-shadow: 0 32px 90px rgba(31, 61, 46, .18);
    backdrop-filter: blur(10px);
}

.rs-auth-card-simple::before {
    content: "";
    position: absolute;
    inset: 0;
    border-top: 9px solid transparent;
    border-image: linear-gradient(90deg, #b99b3f, #659d70) 1;
    pointer-events: none;
}

.rs-auth-brand-wide {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 150px;
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 30px);
    padding: clamp(20px, 3vw, 30px);
    margin-bottom: clamp(26px, 3vw, 34px);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(249, 248, 239, .78));
    border: 1px solid rgba(31, 44, 41, .08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82), 0 18px 45px rgba(31, 61, 46, .08);
}

.rs-auth-brand-wide img {
    width: clamp(112px, 16vw, 150px);
    height: auto;
    flex: 0 0 auto;
    display: block;
    filter: drop-shadow(0 12px 22px rgba(31, 61, 46, .10));
}

.rs-auth-brand-claim {
    min-width: 0;
}

.rs-auth-brand-claim small {
    display: block;
    margin-bottom: 10px;
    color: var(--rs-gold);
    font-size: clamp(15px, 2vw, 19px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: .32em;
    text-transform: uppercase;
    white-space: nowrap;
}

.rs-auth-brand-claim strong {
    display: block;
    color: #14221f;
    font-size: clamp(34px, 5.5vw, 52px);
    line-height: .95;
    font-weight: 900;
    letter-spacing: -.04em;
    white-space: nowrap;
}

.rs-auth-form-panel {
    position: relative;
    z-index: 1;
    padding: clamp(20px, 3vw, 30px);
    border-radius: 28px;
    background: rgba(255, 255, 255, .80);
    border: 1px solid rgba(31, 44, 41, .09);
}

.rs-auth-form-head {
    margin-bottom: 28px;
}

.rs-auth-form-head h1 {
    margin: 0 0 10px;
    color: #1e2b28;
    font-size: clamp(32px, 5vw, 44px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -.045em;
}

.rs-auth-form-head p {
    max-width: 520px;
    margin: 0;
    color: var(--rs-muted);
    font-size: 18px;
    line-height: 1.5;
    font-weight: 500;
}

.rs-auth-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
}

.rs-auth-alert-ok {
    background: rgba(101, 157, 112, .14);
    color: #315b39;
    border: 1px solid rgba(101, 157, 112, .24);
}

.rs-auth-alert-error {
    background: rgba(178, 58, 58, .10);
    color: #8b2f2f;
    border: 1px solid rgba(178, 58, 58, .20);
}

.rs-auth-form {
    display: grid;
    gap: 18px;
}

.rs-auth-field label {
    display: block;
    margin-bottom: 9px;
    color: #6c7671;
    font-size: 14px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.rs-auth-field input {
    width: 100%;
    height: 62px;
    padding: 0 20px;
    border: 1px solid #d7ded6;
    border-radius: 19px;
    outline: none;
    background: rgba(255, 255, 255, .96);
    color: #1e2b28;
    font: inherit;
    font-size: 18px;
    font-weight: 600;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.rs-auth-field input::placeholder {
    color: #6f7784;
    font-weight: 500;
}

.rs-auth-field input:focus {
    border-color: rgba(63, 117, 75, .72);
    box-shadow: 0 0 0 5px rgba(63, 117, 75, .12);
    background: #fff;
}

.rs-auth-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.rs-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #5c6862;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.rs-auth-check input {
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: var(--rs-green);
}

.rs-auth-meta a {
    color: #477648;
    font-size: 16px;
    font-weight: 900;
    text-decoration: none;
}

.rs-auth-meta a:hover {
    text-decoration: underline;
}

.rs-auth-submit {
    width: 100%;
    min-height: 66px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #3f754b 0%, #659d70 100%);
    color: #fff;
    font: inherit;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -.02em;
    cursor: pointer;
    box-shadow: 0 18px 34px rgba(63, 117, 75, .22);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.rs-auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 44px rgba(63, 117, 75, .28);
    filter: saturate(1.06);
}

.rs-auth-note {
    margin-top: 22px;
    color: #87918c;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

/* Spegnimento definitivo della vecchia hero login */
.rs-auth-copy,
.rs-auth-kicker,
.rs-auth-chip-row,
.rs-auth-shape,
.rs-auth-grid,
.rs-auth-form-card,
.rs-auth-card:not(.rs-auth-card-simple) {
    display: none !important;
}

@media (max-width: 680px) {
    .rs-auth-stage-simple {
        padding: 18px;
        align-items: flex-start;
    }

    .rs-auth-card-simple {
        padding: 20px;
        border-radius: 28px;
    }

    .rs-auth-brand-wide {
        min-height: unset;
        align-items: center;
        padding: 18px;
        border-radius: 24px;
    }

    .rs-auth-brand-wide img {
        width: 88px;
    }

    .rs-auth-brand-claim small {
        font-size: 12px;
        letter-spacing: .24em;
        white-space: normal;
    }

    .rs-auth-brand-claim strong {
        font-size: 31px;
        white-space: normal;
    }

    .rs-auth-form-panel {
        padding: 18px;
        border-radius: 24px;
    }

    .rs-auth-form-head h1 {
        font-size: 32px;
    }

    .rs-auth-form-head p {
        font-size: 16px;
    }

    .rs-auth-field input,
    .rs-auth-submit {
        min-height: 58px;
        height: 58px;
    }
}
