.auth-body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: #eaf4f1;
    color: #101a2d;
    font-family: "Inter", Arial, sans-serif;
}

.auth-page {
    position: relative;
    min-height: 100vh;
    padding: 48px 42px 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.auth-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(232, 246, 242, .06), rgba(235, 248, 244, .38) 44%, rgba(246, 251, 249, .74) 100%), url("../img/wepicks-auth-bg.png");
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.auth-page::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .42));
    z-index: 0;
    pointer-events: none;
}

.auth-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 1242px);
    margin: 0 auto;
    flex: 1;
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(440px, 568px);
    align-items: center;
    gap: 48px;
}

.auth-page--signup .auth-shell {
    width: min(100%, 1346px);
    grid-template-columns: minmax(420px, 1fr) minmax(560px, 620px);
}

.auth-brand-panel {
    min-height: 570px;
}

.auth-card {
    width: 100%;
    margin-left: auto;
    padding: 46px 48px 36px;
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 8px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 24px 70px rgba(13, 43, 55, .18), 0 2px 0 rgba(255, 255, 255, .84) inset;
    backdrop-filter: blur(16px);
}

.auth-card--signup {
    padding-top: 36px;
}

.auth-mobile-logo {
    display: none;
    justify-content: center;
    margin-bottom: 20px;
}

.auth-mobile-logo img {
    width: 168px;
    max-width: 70%;
    height: auto;
}

.auth-heading {
    margin-bottom: 30px;
    text-align: center;
}

.auth-heading h1 {
    margin: 0;
    color: #0b1730;
    font-size: 34px;
    line-height: 1.18;
    font-weight: 800;
}

.auth-heading p {
    margin: 10px 0 0;
    color: #3d4656;
    font-size: 17px;
    line-height: 1.55;
    font-weight: 500;
}

.auth-heading p span,
.auth-link {
    color: #128f78;
    font-weight: 700;
}

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

.auth-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
}

.auth-field {
    display: grid;
    gap: 10px;
}

.auth-field--wide {
    grid-column: 1 / -1;
}

.auth-field label,
.auth-label {
    margin: 0;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
    text-transform: none;
}

.auth-input-shell {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-shell .form-control {
    width: 100%;
    min-height: 64px;
    padding: 15px 54px 15px 72px;
    border: 1px solid rgba(112, 126, 145, .34);
    border-radius: 8px;
    background: rgba(255, 255, 255, .82);
    color: #172033;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;
    box-shadow: none;
}

.auth-input-shell .form-control:focus {
    border-color: #20b69a;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(32, 182, 154, .13);
}

.auth-input-shell .form-control::placeholder {
    color: #727b8d;
    font-size: 15px;
    font-weight: 400;
}

.auth-field-icon {
    position: absolute;
    left: 16px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #e2f5f1;
    color: #1aa68d;
    pointer-events: none;
}

.auth-field-icon svg {
    width: 22px;
    height: 22px;
}

.auth-password-toggle {
    position: absolute;
    right: 15px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #4d5668;
    cursor: pointer;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus {
    color: #128f78;
    background: #eef7f5;
    outline: none;
}

.auth-password-toggle svg {
    width: 21px;
    height: 21px;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: -2px;
}

.auth-forgot {
    color: #128f78;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.auth-forgot:hover,
.auth-link:hover {
    color: #0b755f;
}

.auth-submit {
    width: 100%;
    min-height: 64px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #21a58e 0%, #36d19e 100%);
    color: #fff;
    font-size: 19px;
    line-height: 1;
    font-weight: 800;
    box-shadow: 0 12px 22px rgba(22, 158, 133, .22);
}

.auth-submit:hover,
.auth-submit:focus {
    background: linear-gradient(135deg, #168c76 0%, #26bf91 100%);
    color: #fff;
    box-shadow: 0 14px 28px rgba(22, 158, 133, .28);
}

.auth-submit:disabled {
    cursor: not-allowed;
    opacity: .55;
    box-shadow: none;
}

.auth-switch {
    margin: 8px 0 0;
    color: #383f4e;
    text-align: center;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 500;
}

.auth-terms {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #4b5565;
    font-size: 13px;
    line-height: 1.55;
}

.auth-terms input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex: 0 0 auto;
    accent-color: #19a98e;
}

.auth-footer {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 16px;
    margin: 20px auto 0;
    color: #202839;
}

.auth-copyright {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 500;
}

.auth-trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px 0;
}

.auth-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 30px;
    color: #222b3c;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 500;
}

.auth-trust-item + .auth-trust-item {
    border-left: 1px solid rgba(31, 42, 61, .26);
}

.auth-trust-item svg {
    width: 23px;
    height: 23px;
    color: #152238;
}

@media (max-width: 1199px) {
    .auth-page {
        padding: 36px 28px 26px;
    }

    .auth-shell {
        grid-template-columns: minmax(260px, 1fr) minmax(400px, 500px);
        gap: 28px;
    }

    .auth-page--signup .auth-shell {
        grid-template-columns: minmax(260px, 1fr) minmax(430px, 560px);
    }

    .auth-brand-panel {
        min-height: 520px;
    }

    .auth-card {
        padding: 40px 38px 32px;
    }
}

@media (max-width: 900px) {
    .auth-page {
        justify-content: center;
        padding: 26px 18px 24px;
    }

    .auth-page::before {
        background-position: left center;
        filter: saturate(.94);
    }

    .auth-page::after {
        background: rgba(238, 247, 244, .82);
        backdrop-filter: blur(5px);
    }

    .auth-shell {
        width: min(100%, 560px);
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-page--signup .auth-shell {
        width: min(100%, 560px);
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        display: none;
    }

    .auth-card {
        margin: 0;
        padding: 30px 22px 26px;
        background: rgba(255, 255, 255, .94);
    }

    .auth-mobile-logo {
        display: flex;
    }

    .auth-heading {
        margin-bottom: 24px;
    }

    .auth-heading h1 {
        font-size: 29px;
    }

    .auth-heading p {
        font-size: 15px;
    }

    .auth-form-grid {
        grid-template-columns: 1fr;
    }

    .auth-input-shell .form-control {
        min-height: 58px;
        padding-left: 64px;
    }

    .auth-submit {
        min-height: 58px;
        font-size: 17px;
    }

    .auth-footer {
        margin-top: 22px;
    }
}

@media (max-width: 520px) {
    .auth-page {
        min-height: 100svh;
        padding: 18px 12px;
    }

    .auth-card {
        padding: 24px 16px 22px;
    }

    .auth-heading h1 {
        font-size: 25px;
    }

    .auth-input-shell .form-control {
        min-height: 54px;
        padding: 13px 48px 13px 58px;
        font-size: 14px;
    }

    .auth-field-icon {
        left: 12px;
        width: 36px;
        height: 36px;
    }

    .auth-password-toggle {
        right: 10px;
    }

    .auth-trust-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
    }

    .auth-trust-item {
        padding: 0;
    }

    .auth-trust-item + .auth-trust-item {
        border-left: 0;
    }

    .auth-copyright {
        font-size: 14px;
        text-align: center;
    }
}
