:root {
    --auth-ink: #0f2d3a;
    --auth-ink-soft: #53707d;
    --auth-line: rgba(104, 133, 146, 0.26);
    --auth-surface: rgba(255, 255, 255, 0.88);
    --auth-card: rgba(255, 255, 255, 0.1);
    --auth-accent: #0b8ea3;
    --auth-accent-strong: #05697a;
    --auth-warning: #b93822;
}

.auth-page-layout {
    min-height: var(--app-viewport-height);
    background:
        radial-gradient(circle at top left, rgba(11, 142, 163, 0.12), transparent 32rem),
        radial-gradient(circle at bottom right, rgba(10, 83, 95, 0.16), transparent 28rem),
        linear-gradient(180deg, #eef8fa 0%, #f8fbfc 48%, #eef3f7 100%);
}

.auth-page-shell {
    min-height: var(--app-viewport-height);
}

.auth-layout {
    min-height: var(--app-viewport-height);
    padding: 1.25rem;
}

.auth-layout__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(22rem, 0.9fr);
    min-height: calc(var(--app-viewport-height) - 2.5rem);
    border: 1px solid rgba(102, 136, 148, 0.18);
    border-radius: 2rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 30px 80px rgba(17, 45, 58, 0.12);
    backdrop-filter: blur(16px);
}

.auth-story {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(155deg, #0d2430 0%, #12384a 42%, #0b6b7c 72%, #7bd4df 140%);
    color: #f4fcfd;
    padding: clamp(2rem, 4vw, 4rem);
    display: flex;
    align-items: flex-end;
}

.auth-story__ambient {
    position: absolute;
    border-radius: 999px;
    filter: blur(80px);
    opacity: 0.55;
}

.auth-story__ambient--a {
    top: -6rem;
    right: -4rem;
    width: 18rem;
    height: 18rem;
    background: rgba(123, 212, 223, 0.55);
}

.auth-story__ambient--b {
    bottom: -6rem;
    left: -3rem;
    width: 20rem;
    height: 20rem;
    background: rgba(3, 105, 122, 0.52);
}

.auth-story__mesh {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 3.75rem 3.75rem;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.92));
}

.auth-story__content {
    position: relative;
    z-index: 1;
    max-width: 34rem;
}

.auth-story__eyebrow,
.auth-panel__kicker {
    margin: 0 0 0.9rem;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
}

.auth-story__eyebrow {
    color: rgba(216, 247, 252, 0.82);
}

.auth-story__title {
    margin: 0;
    font-size: clamp(2.4rem, 4vw, 4.3rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    font-weight: 700;
}

.auth-story__copy {
    margin: 1.35rem 0 0;
    max-width: 30rem;
    color: rgba(229, 248, 250, 0.82);
    font-size: 1rem;
    line-height: 1.8;
}

.auth-story__highlights {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.auth-story__card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    align-items: start;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1.15rem;
    background: var(--auth-card);
    backdrop-filter: blur(10px);
}

.auth-story__card-icon {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(244, 252, 253, 0.14);
    color: #8fe7f2;
    font-size: 1rem;
}

.auth-story__card strong {
    display: block;
    font-size: 0.96rem;
    font-weight: 600;
}

.auth-story__card p {
    margin: 0.25rem 0 0;
    color: rgba(229, 248, 250, 0.72);
    font-size: 0.88rem;
    line-height: 1.6;
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 253, 0.9));
    padding: clamp(1.5rem, 3vw, 3rem);
}

.auth-panel__content {
    width: min(100%, 28rem);
}

.auth-panel__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--auth-ink-soft);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.auth-panel__back:hover {
    color: var(--auth-accent-strong);
}

.auth-panel__brand {
    display: none;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.auth-panel__brand-mark {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 14px 24px rgba(11, 142, 163, 0.18);
}

.auth-panel__brand-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--auth-ink);
    letter-spacing: -0.03em;
}

.auth-panel__kicker {
    color: var(--auth-accent);
}

.auth-panel__title {
    margin: 0;
    color: var(--auth-ink);
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    line-height: 1;
    letter-spacing: -0.05em;
    font-weight: 700;
}

.auth-panel__subtitle {
    margin: 0.85rem 0 1.6rem;
    color: var(--auth-ink-soft);
    line-height: 1.7;
}

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

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

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

.auth-field__label {
    color: var(--auth-ink);
    font-size: 0.84rem;
    font-weight: 600;
}

.auth-field .form-control {
    width: 100%;
    border: 1px solid var(--auth-line);
    border-radius: 1rem;
    padding: 0.88rem 1rem;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-field .form-control:focus {
    border-color: rgba(11, 142, 163, 0.56);
    box-shadow: 0 0 0 0.3rem rgba(11, 142, 163, 0.12);
    transform: translateY(-1px);
}

.auth-field__help {
    margin: 0;
    color: var(--auth-ink-soft);
    font-size: 0.79rem;
    line-height: 1.6;
}

.auth-field__error {
    margin: 0;
    color: var(--auth-warning);
    font-size: 0.8rem;
}

.auth-field--error .form-control {
    border-color: rgba(185, 56, 34, 0.45);
    background: rgba(255, 244, 242, 0.92);
}

.auth-surface {
    padding: 1rem 1.1rem;
    border: 1px solid rgba(11, 142, 163, 0.14);
    border-radius: 1rem;
    background: var(--auth-surface);
}

.auth-surface--danger {
    border-color: rgba(185, 56, 34, 0.22);
    background: rgba(255, 244, 242, 0.94);
}

.auth-surface--muted {
    border-color: rgba(104, 133, 146, 0.14);
    background: rgba(246, 250, 251, 0.94);
}

.auth-surface__title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.55rem;
    color: var(--auth-ink);
    font-size: 0.92rem;
    font-weight: 600;
}

.auth-surface__body,
.auth-surface ul {
    margin: 0;
    color: var(--auth-ink-soft);
    font-size: 0.84rem;
    line-height: 1.7;
}

.auth-surface ul {
    padding-left: 1.1rem;
}

.auth-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    border: 0;
    border-radius: 1rem;
    padding: 0.95rem 1.15rem;
    background: linear-gradient(135deg, #0b8ea3, #0d6d7c);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 16px 28px rgba(11, 142, 163, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.auth-primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(11, 142, 163, 0.28);
    filter: saturate(1.04);
}

.auth-primary-btn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.3rem rgba(11, 142, 163, 0.14);
}

.auth-panel__footer {
    margin-top: 1.4rem;
    display: grid;
    gap: 0.8rem;
}

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

.auth-footer-links p {
    margin: 0;
    color: var(--auth-ink-soft);
    font-size: 0.87rem;
}

.auth-footer-links a {
    color: var(--auth-accent-strong);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer-links a:hover {
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    .auth-layout {
        padding: 0;
    }

    .auth-layout__grid {
        min-height: var(--app-viewport-height);
        border: 0;
        border-radius: 0;
        grid-template-columns: 1fr;
    }

    .auth-story {
        display: none;
    }

    .auth-panel {
        padding: 1.5rem;
    }

    .auth-panel__brand {
        display: inline-flex;
    }
}
