.auth-shell {
    --auth-shell-gradient: linear-gradient(135deg, rgba(40, 95, 255, 0.08), rgba(14, 170, 209, 0.12));
    --auth-highlight-gradient: linear-gradient(145deg, #173dff, #00b3d4);
    --auth-primary-shadow: rgba(23, 61, 255, 0.18);
    --auth-cta-gap: 0.75rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2rem);
    margin: 0 auto;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(18, 38, 63, 0.16);
    overflow: hidden;
}

.auth-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--auth-shell-gradient);
    pointer-events: none;
}

.auth-shell__content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 3vw, 1.75rem);
    z-index: 1;
}

@media (min-width: 992px) {
    .auth-shell__content {
        flex-direction: row;
        align-items: stretch;
        gap: clamp(1.5rem, 3vw, 2.25rem);
    }
}

.auth-shell--register {
    --auth-shell-gradient: linear-gradient(135deg, rgba(40, 95, 255, 0.08), rgba(14, 170, 209, 0.12));
    --auth-highlight-gradient: linear-gradient(145deg, #173dff, #00b3d4);
    --auth-primary-shadow: rgba(23, 61, 255, 0.18);
    --auth-cta-gap: 0.5rem;
}

.auth-shell--login {
    --auth-shell-gradient: linear-gradient(135deg, rgba(40, 95, 255, 0.08), rgba(14, 170, 209, 0.12));
    --auth-highlight-gradient: linear-gradient(145deg, #173dff, #00b3d4);
    --auth-primary-shadow: rgba(23, 61, 255, 0.18);
    --auth-cta-gap: 0.75rem;
}

.auth-highlight {
    flex: 1 1 48%;
    padding: clamp(1.25rem, 2.5vw, 2.25rem);
    border-radius: 22px;
    background: var(--auth-highlight-gradient);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(1.25rem, 3vw, 1.75rem);
}

.auth-highlight h1 {
    font-size: clamp(1.9rem, 2.4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem;
}

.auth-highlight p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

.auth-highlight__intro {
    display: grid;
    gap: 1rem;
}

.auth-pill {
    align-self: flex-start;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
}

.auth-update-card {
    display: grid;
    gap: 0.45rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.26);
    box-shadow: 0 18px 38px rgba(7, 27, 92, 0.2);
}

.auth-update-label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
}

.auth-update-card strong {
    font-size: 1.05rem;
}

.auth-update-text {
    margin: 0;
    font-size: 0.92rem;
    opacity: 0.9;
}

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

.auth-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 10px 24px rgba(12, 36, 94, 0.12);
}

.auth-benefits svg {
    flex-shrink: 0;
}

.auth-benefits li div {
    display: grid;
    gap: 0.25rem;
}

.auth-benefits li strong {
    font-weight: 700;
    font-size: 0.95rem;
}

.auth-benefits li span {
    font-size: 0.84rem;
    opacity: 0.9;
}

.auth-cta {
    display: flex;
    flex-direction: column;
    gap: var(--auth-cta-gap);
    margin-top: auto;
}

.auth-cta a {
    color: #ffffff;
    font-weight: 600;
}

.auth-carousel {
    display: grid;
    gap: 1rem;
}

.auth-carousel__viewport {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.22);
}

.auth-carousel__track {
    display: flex;
    transition: transform 0.6s ease;
}

.auth-carousel__slide {
    min-width: 100%;
    padding: 1rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: rgba(10, 30, 70, 0.92);
}

.auth-carousel__slide img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 18px 35px rgba(7, 22, 66, 0.25);
    object-fit: contain;
}

.auth-carousel__slide figcaption {
    font-size: 0.9rem;
    line-height: 1.35;
    background: rgba(255, 255, 255, 0.82);
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(12, 24, 64, 0.18);
}

.auth-carousel__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.auth-carousel__dots {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.auth-carousel__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    padding: 0;
}

.auth-carousel__dot.is-active,
.auth-carousel__dot:focus {
    background: #ffffff;
    transform: scale(1.1);
}

.auth-carousel__btn {
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.auth-carousel__btn:hover,
.auth-carousel__btn:focus {
    background: rgba(255, 255, 255, 0.45);
    transform: scale(1.05);
}

.auth-carousel__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.auth-card {
    flex: 1 1 52%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: clamp(1.5rem, 3.5vw, 2.5rem);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-card__header h2 {
    margin: 0;
    font-size: clamp(1.5rem, 2vw, 2.2rem);
    font-weight: 700;
    color: #1a233a;
}

.auth-card__header p {
    margin: 0.5rem 0 0;
    color: #4f5d75;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.form-field label {
    font-weight: 600;
    color: #1a233a;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input.form-control {
    border-radius: 14px;
    padding: 0.85rem 1.1rem;
    font-size: 1rem;
    border: 1px solid rgba(106, 119, 143, 0.35);
    background-color: rgba(255, 255, 255, 0.92);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-wrapper input.form-control:focus {
    border-color: rgba(20, 110, 255, 0.65);
    box-shadow: 0 0 0 4px rgba(20, 110, 255, 0.12);
}

.password-toggle {
    position: absolute;
    inset: 0.35rem 0.35rem 0.35rem auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.85rem;
    border-radius: 12px;
    border: none;
    background: rgba(20, 110, 255, 0.08);
    color: #0c3f8f;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.password-toggle:hover,
.password-toggle.is-active {
    background: rgba(20, 110, 255, 0.15);
    color: #0a2c66;
}

.auth-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 576px) {
    .auth-actions {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.btn-primary.btn-modern {
    border-radius: 16px;
    padding: 0.85rem 1.2rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 12px 25px var(--auth-primary-shadow);
    border: none;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    padding: 0.85rem 1.2rem;
    font-weight: 600;
    background: rgba(23, 61, 255, 0.08);
    color: #153dff;
    border: none;
    transition: background 0.2s ease;
    text-decoration: none;
}

.btn-ghost:hover,
.btn-ghost:focus {
    background: rgba(23, 61, 255, 0.12);
    color: #102dbb;
}

.auth-footer {
    font-size: 0.95rem;
    color: #4f5d75;
    text-align: center;
}

.auth-footer a {
    font-weight: 600;
    color: #153dff;
}

.auth-trust {
    font-size: 0.85rem;
    color: #6b778d;
    text-align: center;
}

.terms-wrapper {
    padding: 0.85rem;
    border-radius: 16px;
    background: rgba(20, 110, 255, 0.06);
    border: 1px solid rgba(20, 110, 255, 0.12);
    display: flex;
    gap: 0.75rem;
}

.terms-wrapper .form-check {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin: 0;
}

.terms-wrapper .form-check-input {
    margin-top: 0.35rem;
    flex-shrink: 0;
}

.terms-wrapper .form-check-label {
    color: #1a233a;
    font-size: 0.95rem;
}

.link-inline {
    color: #153dff;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .auth-shell {
        padding: clamp(1.25rem, 5vw, 1.75rem);
    }

    .auth-card {
        order: 1;
    }

    .auth-highlight {
        order: 2;
    }

    .auth-highlight__intro {
        gap: 0.75rem;
    }

    .auth-carousel__btn {
        display: none;
    }

    .auth-carousel__dots {
        justify-content: center;
    }
}
