.auth-page {
    min-height: calc(100vh - 2rem);
    padding: 3rem 0 4rem;
    background:
        radial-gradient(circle at 8% 0%, rgba(20, 97, 162, 0.06), transparent 34rem),
        linear-gradient(180deg, #fbfaf8 0%, #f6f4f1 100%);
}

.auth-shell {
    display: grid;
    gap: 1.2rem;
}

.auth-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
    color: #6f737b;
    font-size: 0.92rem;
    font-weight: 700;
}

.auth-breadcrumb a {
    color: #5b6069;
    text-decoration: none;
}

.auth-breadcrumb a:hover {
    color: #c35400;
}

.auth-breadcrumb span:last-child {
    color: #c35400;
}

.auth-card {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, 1fr);
    min-height: 660px;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 22px 54px rgba(23, 33, 38, 0.11);
}

.auth-card__visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(2rem, 4vw, 3.5rem);
    min-height: 42rem;
    padding: clamp(2.5rem, 4vw, 4.4rem);
    color: #fff;
    background-image:
        linear-gradient(90deg, rgba(10, 36, 72, 0.9) 0%, rgba(13, 50, 92, 0.74) 45%, rgba(204, 86, 18, 0.28) 100%),
        linear-gradient(180deg, rgba(7, 24, 50, 0.1) 0%, rgba(7, 24, 50, 0.36) 100%),
        url("../img/auth/auth-mountains.jpg");
    background-size: cover;
    background-position: center;
}

.auth-card__visual-content {
    display: grid;
    gap: 1.55rem;
    max-width: 30rem;
}

.auth-kicker {
    justify-self: start;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.17);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.auth-card__visual h1 {
    margin: 0;
    font-size: clamp(2.15rem, 4.2vw, 3.55rem);
    line-height: 1;
    font-weight: 800;
}

.auth-card__visual p {
    margin: -0.85rem 0 0;
    max-width: 27rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.05rem, 1.7vw, 1.5rem);
    font-weight: 700;
}

.auth-benefits {
    display: grid;
    gap: 1.75rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.auth-benefits li,
.auth-card__secure {
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
}

.auth-benefits strong,
.auth-card__secure strong {
    display: block;
    margin-bottom: 0.18rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
}

.auth-benefits span:last-child,
.auth-card__secure span:last-child {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.94rem;
    line-height: 1.45;
}

.auth-benefits__icon {
    display: inline-grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.auth-benefits__icon::before,
.auth-field-control::before,
.auth-password-toggle::before {
    content: "";
    display: block;
    width: 1.35rem;
    height: 1.35rem;
    background: currentColor;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
}

.auth-benefits__icon::before {
    color: #fff;
}

.auth-benefits__icon--cart::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M6 6h15l-2 8H8L6 3H3m6 17h.01M18 20h.01'/%3E%3C/svg%3E");
}

.auth-benefits__icon--star::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' d='m12 3 2.8 5.7 6.2.9-4.5 4.4 1.1 6.2-5.6-3-5.6 3 1.1-6.2L3 9.6l6.2-.9L12 3Z'/%3E%3C/svg%3E");
}

.auth-benefits__icon--bell::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M18 8a6 6 0 0 0-12 0c0 7-3 7-3 7h18s-3 0-3-7m-8 11a2 2 0 0 0 4 0'/%3E%3C/svg%3E");
}

.auth-benefits__icon--shield::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Zm-3-10 2 2 4-4'/%3E%3C/svg%3E");
}

.auth-card__secure {
    margin: auto 0 0;
}

.auth-card__secure .auth-benefits__icon {
    width: 2.4rem;
    height: 2.4rem;
    background: rgba(255, 255, 255, 0.12);
}

.auth-card__panel {
    display: grid;
    align-items: center;
    padding: clamp(2.3rem, 4vw, 4.4rem);
}

.auth-form-card {
    display: grid;
    gap: 1.65rem;
}

.auth-form-card h2 {
    margin: 0;
    color: #172126;
    font-size: clamp(1.75rem, 2.4vw, 2.35rem);
    line-height: 1.12;
    font-weight: 850;
}

.auth-form-card p {
    max-width: 33rem;
    margin: -1.05rem 0 0;
    color: #414853;
    font-size: 1rem;
    line-height: 1.55;
    font-weight: 600;
}

.auth-form {
    display: grid;
    gap: 1.35rem;
}

.auth-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.auth-field {
    display: grid;
    gap: 0.55rem;
}

.auth-field label {
    color: #172126;
    font-size: 0.9rem;
    font-weight: 850;
}

.auth-field-control {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 4.05rem;
    border: 1px solid rgba(23, 33, 38, 0.12);
    border-radius: 16px;
    background: #fff;
    color: #9399a3;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field-control::before {
    flex: 0 0 auto;
    width: 1.15rem;
    height: 1.15rem;
    margin-left: 1.25rem;
}

.auth-field-control--user::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M20 21a8 8 0 0 0-16 0m8-10a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z'/%3E%3C/svg%3E");
}

.auth-field-control--mail::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 6h16v12H4zM4 7l8 6 8-6'/%3E%3C/svg%3E");
}

.auth-field-control--lock::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M7 11V8a5 5 0 0 1 10 0v3M5 11h14v10H5z'/%3E%3C/svg%3E");
}

.auth-field-control:focus-within {
    border-color: rgba(235, 83, 9, 0.55);
    box-shadow: 0 0 0 0.25rem rgba(235, 83, 9, 0.12);
}

.auth-field.has-error .auth-field-control {
    border-color: #b34040;
    box-shadow: 0 0 0 0.2rem rgba(179, 64, 64, 0.1);
}

.auth-field-control input {
    width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 4rem;
    border: 0;
    outline: 0;
    padding: 0.1rem 1.15rem;
    background: transparent;
    color: #172126;
    font-weight: 650;
}

.auth-field-control input::placeholder {
    color: #8a909b;
    font-weight: 600;
}

.auth-password-toggle {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 3.15rem;
    height: 3.15rem;
    margin-right: 0.45rem;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #757b85;
    cursor: pointer;
}

.auth-password-toggle::before {
    width: 1.2rem;
    height: 1.2rem;
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12Zm10 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z'/%3E%3C/svg%3E");
}

.auth-password-toggle.is-visible::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m3 3 18 18M10.6 10.6A3 3 0 0 0 13.4 13.4M9.9 5.3a10.7 10.7 0 0 1 2.1-.2c6.5 0 10 6 10 6a17 17 0 0 1-2.6 3.1M6.1 6.9C3.4 8.7 2 12 2 12s3.5 6 10 6c1.5 0 2.8-.3 4-.8'/%3E%3C/svg%3E");
}

.auth-form__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: -0.15rem;
}

.auth-form__meta a,
.auth-switch a,
.auth-check a {
    color: #bd5200;
    font-weight: 850;
    text-decoration: none;
}

.auth-form__meta a:hover,
.auth-switch a:hover,
.auth-check a:hover {
    color: #eb5309;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #333b46;
    font-size: 0.94rem;
    font-weight: 700;
}

.auth-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-check > span[aria-hidden="true"] {
    width: 1.2rem;
    height: 1.2rem;
    border: 1px solid rgba(23, 33, 38, 0.28);
    border-radius: 4px;
    background: #fff;
    box-shadow: inset 0 0 0 2px #fff;
}

.auth-check input:checked + span[aria-hidden="true"] {
    border-color: #eb5309;
    background: #eb5309;
}

.auth-check input:focus + span[aria-hidden="true"] {
    box-shadow: 0 0 0 0.2rem rgba(235, 83, 9, 0.15), inset 0 0 0 2px #fff;
}

.auth-check--terms {
    align-items: flex-start;
    line-height: 1.45;
}

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    min-height: 4rem;
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, #ff6418 0%, #df4300 100%);
    box-shadow: 0 12px 24px rgba(223, 67, 0, 0.22);
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit:hover,
.auth-submit:focus {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(223, 67, 0, 0.28);
}

.auth-submit--link {
    margin-top: 0.4rem;
}

.auth-switch {
    display: flex;
    justify-content: center;
    gap: 0.9rem;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(23, 33, 38, 0.08);
    color: #303742;
    font-weight: 700;
}

.auth-alert,
.auth-form__errors {
    border-radius: 10px;
    color: #9a2f2f;
    font-size: 0.88rem;
    font-weight: 700;
}

.auth-alert {
    padding: 0.8rem 0.9rem;
    background: rgba(179, 64, 64, 0.08);
}

.auth-alert ul,
.auth-form__errors ul {
    margin: 0;
    padding-left: 1.1rem;
}

@media (max-width: 991.98px) {
    .auth-page {
        padding: 1rem 0 2rem;
    }

    .auth-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .auth-card__visual {
        min-height: 20rem;
        padding: 1.65rem;
    }

    .auth-benefits,
    .auth-card__secure {
        display: none;
    }

    .auth-card__panel {
        padding: 1.45rem;
    }
}

@media (max-width: 575.98px) {
    .auth-breadcrumb {
        font-size: 0.82rem;
    }

    .auth-card {
        border-radius: 14px;
    }

    .auth-card__visual {
        min-height: 15rem;
    }

    .auth-form__grid,
    .auth-form__meta {
        display: grid;
        grid-template-columns: 1fr;
    }

    .auth-form__meta {
        justify-items: start;
    }

    .auth-switch {
        flex-wrap: wrap;
    }
}
