:root {
    --auth-bg: var(--ct-body-bg, #f0f4f7);
    --auth-bg-secondary: var(--ct-tertiary-bg, #f6f7fb);
    --auth-surface: rgba(255, 255, 255, 0.88);
    --auth-surface-strong: rgba(255, 255, 255, 0.98);
    --auth-border: rgba(24, 138, 226, 0.16);
    --auth-border-strong: rgba(24, 138, 226, 0.34);
    --auth-text: var(--ct-gray-900, #313a46);
    --auth-text-muted: var(--ct-secondary-color, #8a969c);
    --auth-accent: var(--ct-primary, #188ae2);
    --auth-accent-strong: var(--ct-primary-text-emphasis, #1475c0);
    --auth-danger: var(--ct-danger, #ff5b5b);
}

body.auth-premium-body {
    min-height: 100vh;
    margin: 0;
    color: var(--auth-text);
    background:
        radial-gradient(circle at top left, rgba(24, 138, 226, 0.14), transparent 28rem),
        radial-gradient(circle at bottom right, rgba(91, 105, 188, 0.12), transparent 24rem),
        linear-gradient(135deg, #f7f9fc 0%, var(--auth-bg) 45%, #eef3f8 100%);
}

.auth-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.auth-shell__orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.6;
    pointer-events: none;
}

.auth-shell__orb--one {
    top: -6rem;
    left: -4rem;
    width: 18rem;
    height: 18rem;
    background: radial-gradient(circle, rgba(24, 138, 226, 0.22), rgba(24, 138, 226, 0));
}

.auth-shell__orb--two {
    right: -5rem;
    bottom: -7rem;
    width: 20rem;
    height: 20rem;
    background: radial-gradient(circle, rgba(91, 105, 188, 0.22), rgba(91, 105, 188, 0));
}

.auth-shell__grid {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    width: min(1320px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 460px);
    gap: 3rem;
    align-items: center;
    padding: 3rem clamp(2rem, 5vw, 5rem);
}

.auth-shell__intro {
    max-width: 42rem;
    padding: 2rem 1rem 2rem 0;
}

.auth-shell__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid rgba(24, 138, 226, 0.14);
    border-radius: 999px;
    background: rgba(24, 138, 226, 0.08);
    color: var(--auth-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.auth-shell__title {
    margin: 1.6rem 0 1rem;
    color: var(--auth-text);
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.auth-shell__lead {
    max-width: 32rem;
    margin: 0;
    color: var(--auth-text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

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

.auth-shell__detail {
    padding: 1rem 1.1rem;
    border: 1px solid rgba(24, 138, 226, 0.1);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.64));
    backdrop-filter: blur(10px);
}

.auth-shell__detail-label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--auth-text-muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.auth-shell__detail-value {
    color: var(--auth-text);
    font-size: 0.98rem;
    font-weight: 600;
}

.auth-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--auth-border);
    border-radius: 1.75rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 247, 251, 0.9)),
        var(--auth-surface);
    box-shadow: 0 1.5rem 3.5rem rgba(49, 58, 70, 0.12);
    backdrop-filter: blur(18px);
}

.auth-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(145deg, rgba(24, 138, 226, 0.3), rgba(91, 105, 188, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.auth-panel__logo-wrap {
    display: flex;
    justify-content: center;
    padding: 2.25rem 2rem 1.5rem;
    background: linear-gradient(135deg, var(--ct-primary, #188ae2) 0%, var(--ct-secondary, #5b69bc) 100%);
}

.auth-panel__logo {
    width: auto;
    height: 5.8rem;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 0.5rem 1.2rem rgba(0, 0, 0, 0.35));
}

.auth-panel__content {
    padding: 1.75rem 2rem 2rem;
}

.auth-panel__footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 0;
    padding: 0 2rem 1.5rem;
    color: var(--auth-text-muted);
    font-size: 0.82rem;
}

.auth-card__kicker {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--auth-accent-strong);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.auth-card__title {
    margin: 0 0 0.6rem;
    color: var(--auth-text);
    font-size: 1.9rem;
    font-weight: 700;
}

.auth-card__description {
    margin: 0 0 1.5rem;
    color: var(--auth-text-muted);
    line-height: 1.7;
}

.auth-card__form,
.auth-card__stack {
    display: grid;
    gap: 1rem;
}

.auth-card__field {
    display: grid;
    gap: 0.45rem;
}

.auth-card__field label,
.auth-card__field .form-label {
    color: var(--auth-text);
    font-size: 0.9rem;
    font-weight: 600;
}

.auth-card__input,
.auth-card__field input[type="text"],
.auth-card__field input[type="email"],
.auth-card__field input[type="password"] {
    width: 100%;
    border: 1px solid rgba(24, 138, 226, 0.14);
    border-radius: 0.95rem;
    background: var(--auth-surface-strong);
    color: var(--auth-text);
    padding: 0.95rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-card__input::placeholder,
.auth-card__field input::placeholder {
    color: #9ba6b7;
}

.auth-card__input:focus,
.auth-card__field input:focus {
    outline: none;
    border-color: var(--auth-border-strong);
    box-shadow: 0 0 0 0.25rem rgba(24, 138, 226, 0.12);
    background: #ffffff;
}

.auth-card__meta {
    display: flex;
    justify-content: flex-end;
    margin-top: -0.25rem;
}

.auth-card__link {
    color: var(--auth-accent-strong);
    text-decoration: none;
}

.auth-card__link:hover,
.auth-card__link:focus {
    color: var(--auth-text);
}

.auth-card__button,
.auth-card__action .btn {
    width: 100%;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ct-primary, #188ae2) 0%, var(--ct-secondary, #5b69bc) 100%);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 0.95rem 1.1rem;
    box-shadow: 0 1rem 2rem rgba(24, 138, 226, 0.2);
}

.auth-card__button:hover,
.auth-card__button:focus,
.auth-card__action .btn:hover,
.auth-card__action .btn:focus {
    color: #ffffff;
    filter: brightness(1.03);
}

.auth-card__hint,
.auth-card__message {
    margin: 1.2rem 0 0;
    color: var(--auth-text-muted);
    line-height: 1.7;
}

.auth-card__alert,
.auth-card__field .errorlist,
.auth-card__field .text-danger {
    margin: 0;
    color: var(--auth-danger);
    font-size: 0.85rem;
}

.auth-card__alert {
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 91, 91, 0.2);
    border-radius: 1rem;
    background: rgba(255, 91, 91, 0.08);
}

.auth-card__field .errorlist {
    list-style: none;
    padding: 0;
}

.auth-card__note {
    margin-top: 1.25rem;
    color: var(--auth-text-muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

@media (max-width: 991.98px) {
    .auth-shell__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-left: clamp(1.5rem, 6vw, 3rem);
        padding-right: clamp(1.5rem, 6vw, 3rem);
    }

    .auth-shell__intro {
        padding: 0;
    }
}

@media (max-width: 575.98px) {
    .auth-shell__grid {
        padding: 1.5rem;
    }

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

    .auth-panel__content {
        padding: 1.25rem;
    }

    .auth-panel__logo-wrap,
    .auth-panel__footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .auth-panel__footer {
        flex-direction: column;
    }
}
