/* ==========================================================================
   SURPRIA - Authentication
   ========================================================================== */

.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 8% 20%,
            rgba(244, 165, 28, 0.12),
            transparent 28%
        ),
        radial-gradient(
            circle at 92% 85%,
            rgba(236, 186, 190, 0.20),
            transparent 30%
        ),
        var(--bg);
}


/* ==========================================================================
   Header
   ========================================================================== */

.auth-header {
    position: relative;
    z-index: 20;

    border-bottom: 1px solid var(--border);
    background: rgba(255, 250, 242, 0.82);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.auth-header-inner {
    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.auth-header-actions {
    display: flex;
    align-items: center;

    gap: 12px;
}

.auth-existing {
    margin-left: 10px;

    color: var(--text-soft);

    font-size: 0.86rem;
    font-weight: 650;
}


/* ==========================================================================
   Main
   ========================================================================== */

.auth-main {
    position: relative;

    padding: 65px 0 90px;
}

.auth-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 0.95fr)
        minmax(440px, 0.75fr);

    align-items: center;

    gap: clamp(50px, 8vw, 110px);
}


/* ==========================================================================
   Left introduction
   ========================================================================== */

.auth-intro {
    min-width: 0;
}

.auth-intro-content {
    max-width: 620px;
}

.auth-intro h1 {
    margin: 22px 0 20px;

    max-width: 600px;

    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 0.98;

    letter-spacing: -0.065em;
}

.auth-intro-text {
    max-width: 570px;

    margin: 0;

    color: var(--text-soft);

    font-size: 1.08rem;
    line-height: 1.75;
}


/* ==========================================================================
   Benefits
   ========================================================================== */

.auth-benefits {
    display: grid;

    gap: 14px;

    margin-top: 38px;
}

.auth-benefit {
    display: flex;
    align-items: center;

    gap: 16px;

    max-width: 570px;

    padding: 15px;

    border: 1px solid rgba(21, 21, 21, 0.055);
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.52);

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.auth-benefit:hover {
    transform: translateX(5px);

    background: rgba(255, 255, 255, 0.82);

    box-shadow: var(--shadow-sm);
}

.auth-benefit-icon {
    flex: 0 0 auto;

    width: 50px;
    height: 50px;

    display: grid;
    place-items: center;

    border-radius: 15px;

    background: white;

    box-shadow: 0 6px 20px rgba(30, 24, 16, 0.06);

    font-size: 1.4rem;
}

.auth-benefit strong {
    display: block;

    margin-bottom: 4px;

    font-size: 0.95rem;
}

.auth-benefit span {
    display: block;

    color: var(--text-soft);

    font-size: 0.82rem;
    line-height: 1.5;
}


/* ==========================================================================
   Quote
   ========================================================================== */

.auth-quote {
    max-width: 570px;

    display: flex;
    align-items: flex-start;

    gap: 13px;

    margin-top: 32px;
    padding-top: 25px;

    border-top: 1px solid var(--border);
}

.auth-quote-icon {
    flex: 0 0 auto;

    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: rgba(244, 165, 28, 0.14);

    font-size: 0.9rem;
}

.auth-quote p {
    margin: 4px 0 0;

    color: var(--text-soft);

    font-size: 0.88rem;
    line-height: 1.6;

    font-style: italic;
}


/* ==========================================================================
   Registration card
   ========================================================================== */

.auth-card {
    width: 100%;
    max-width: 530px;

    justify-self: end;

    padding: clamp(28px, 4vw, 42px);

    border: 1px solid rgba(21, 21, 21, 0.07);
    border-radius: 30px;

    background: rgba(255, 255, 255, 0.94);

    box-shadow: var(--shadow-lg);
}

.auth-card-heading {
    margin-bottom: 28px;
}

.auth-card-heading h2 {
    margin: 0;

    font-size: 1.85rem;
    line-height: 1.15;

    letter-spacing: -0.035em;
}

.auth-card-heading p {
    margin: 8px 0 0;

    color: var(--text-soft);

    font-size: 0.9rem;
    line-height: 1.5;
}


/* ==========================================================================
   Form
   ========================================================================== */

.auth-form {
    display: grid;

    gap: 19px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 14px;
}

.form-group {
    min-width: 0;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    color: var(--text);

    font-size: 0.82rem;
    font-weight: 800;
}

.form-group input {
    width: 100%;
    height: 52px;

    padding: 0 15px;

    border: 1px solid #ded9d1;
    border-radius: 13px;

    outline: none;

    background: #fff;

    color: var(--text);

    font-size: 0.93rem;

    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease;
}

.form-group input::placeholder {
    color: #aaa49c;
}

.form-group input:hover {
    border-color: #cbc4b9;
}

.form-group input:focus {
    border-color: var(--accent);

    box-shadow:
        0 0 0 4px rgba(244, 165, 28, 0.12);
}

.form-group input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: var(--text);
}


/* ==========================================================================
   Password
   ========================================================================== */

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 54px;
}

.password-toggle {
    position: absolute;

    top: 50%;
    right: 7px;

    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    transform: translateY(-50%);

    border: 0;
    border-radius: 10px;

    background: transparent;

    cursor: pointer;

    font-size: 1rem;

    transition: background 0.16s ease;
}

.password-toggle:hover {
    background: var(--surface-soft);
}

.password-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.field-help {
    margin-top: 7px;

    color: #8b857c;

    font-size: 0.75rem;
    line-height: 1.45;
}


/* ==========================================================================
   Terms
   ========================================================================== */

.terms-check {
    display: flex;
    align-items: flex-start;

    gap: 11px;

    cursor: pointer;

    color: var(--text-soft);

    font-size: 0.79rem;
    line-height: 1.55;
}

.terms-check input {
    flex: 0 0 auto;

    width: 17px;
    height: 17px;

    margin: 2px 0 0;

    accent-color: var(--accent);

    cursor: pointer;
}

.terms-check a {
    color: var(--text);

    font-weight: 800;

    text-decoration: underline;
    text-decoration-color: rgba(21, 21, 21, 0.25);
    text-underline-offset: 3px;
}

.terms-check a:hover {
    text-decoration-color: var(--accent);
}


/* ==========================================================================
   Submit
   ========================================================================== */

.auth-submit {
    width: 100%;

    gap: 12px;

    margin-top: 2px;

    border: 0;

    cursor: pointer;
}

.auth-submit span {
    transition: transform 0.18s ease;
}

.auth-submit:hover span {
    transform: translateX(4px);
}


/* ==========================================================================
   Errors
   ========================================================================== */

.form-alert {
    margin-bottom: 23px;

    padding: 16px 18px;

    border-radius: 14px;

    font-size: 0.82rem;
    line-height: 1.5;
}

.form-alert strong {
    display: block;

    margin-bottom: 7px;
}

.form-alert ul {
    margin: 0;
    padding-left: 19px;
}

.form-alert li + li {
    margin-top: 4px;
}

.form-alert-error {
    border: 1px solid rgba(194, 55, 55, 0.16);

    background: #fff2f1;

    color: #9f302b;
}


/* ==========================================================================
   Mobile login link
   ========================================================================== */

.auth-login-mobile {
    display: none;

    margin: 0;

    text-align: center;

    color: var(--text-soft);

    font-size: 0.82rem;
}

.auth-login-mobile a {
    color: var(--text);

    font-weight: 850;
}


/* ==========================================================================
   Language switcher
   ========================================================================== */

.language-switcher a.active {
    background: var(--text);
    color: white;
}


/* ==========================================================================
   Animation
   ========================================================================== */

@keyframes authCardEnter {

    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.auth-card {
    animation: authCardEnter 0.45s ease both;
}


/* ==========================================================================
   Tablet
   ========================================================================== */

@media (max-width: 1050px) {

    .auth-layout {
        grid-template-columns: 0.9fr 1fr;

        gap: 45px;
    }

    .auth-intro h1 {
        font-size: clamp(2.8rem, 5vw, 4rem);
    }

    .auth-card {
        max-width: 500px;
    }

}


/* ==========================================================================
   Small tablet
   ========================================================================== */

@media (max-width: 850px) {

    .auth-main {
        padding: 45px 0 70px;
    }

    .auth-layout {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .auth-intro {
        text-align: center;
    }

    .auth-intro-content,
    .auth-intro-text,
    .auth-benefit,
    .auth-quote {
        margin-left: auto;
        margin-right: auto;
    }

    .auth-intro h1 {
        margin-left: auto;
        margin-right: auto;
    }

    .auth-benefit {
        text-align: left;
    }

    .auth-quote {
        text-align: left;
    }

    .auth-card {
        justify-self: center;

        max-width: 580px;
    }

}


/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 680px) {

    .auth-header-inner {
        min-height: 70px;
    }

    .auth-header-actions .language-switcher {
        display: flex;
    }

    .auth-existing {
        display: none;
    }

    .auth-header-actions > .btn {
        display: none;
    }

    .auth-main {
        padding: 35px 0 55px;
    }

    .auth-intro h1 {
        font-size: 2.7rem;
    }

    .auth-intro-text {
        font-size: 0.98rem;
    }

    .auth-benefits {
        margin-top: 28px;
    }

    .auth-benefit {
        padding: 13px;
    }

    .auth-benefit-icon {
        width: 46px;
        height: 46px;
    }

    .auth-quote {
        display: none;
    }

    .auth-card {
        padding: 27px 20px;

        border-radius: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .auth-login-mobile {
        display: block;
    }

}


/* ==========================================================================
   Very small mobile
   ========================================================================== */

@media (max-width: 430px) {

    .auth-header-inner {
        gap: 12px;
    }

    .auth-header .brand {
        font-size: 1.25rem;
    }

    .auth-header-actions {
        gap: 5px;
    }

    .auth-header-actions .language-switcher {
        padding: 3px;
    }

    .auth-header-actions .language-switcher a {
        padding: 5px 6px;

        font-size: 0.65rem;
    }

    .auth-intro h1 {
        font-size: 2.35rem;
    }

    .auth-card-heading h2 {
        font-size: 1.6rem;
    }

}
/* ==========================================================================
   Login additions
   ========================================================================== */

.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 8px;
}

.form-label-row label {
    margin-bottom: 0;
}

.forgot-link {
    color: var(--text-soft);

    font-size: 0.76rem;
    font-weight: 750;

    transition: color 0.16s ease;
}

.forgot-link:hover {
    color: var(--accent);
}


.remember-check {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    width: fit-content;

    cursor: pointer;

    color: var(--text-soft);

    font-size: 0.8rem;
}

.remember-check input {
    width: 17px;
    height: 17px;

    margin: 0;

    accent-color: var(--accent);

    cursor: pointer;
}