:root {
    --auth-surface: rgba(255, 255, 255, 0.88);
    --auth-border: rgba(18, 48, 74, 0.1);
    --auth-text: #183249;
    --auth-text-soft: #617488;
    --auth-brand: #1f7a8c;
    --auth-brand-strong: #155767;
    --auth-brand-soft: rgba(31, 122, 140, 0.12);
    --auth-shadow: 0 24px 60px rgba(18, 48, 74, 0.12);
    --auth-radius-xl: 32px;
    --auth-radius-md: 18px;
    --auth-radius-sm: 14px;
}

html,
body {
    min-height: 100%;
}

body.auth-shell {
    margin: 0;
    color: var(--auth-text);
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(31, 122, 140, 0.18), transparent 24%),
        radial-gradient(circle at top right, rgba(21, 87, 103, 0.16), transparent 22%),
        linear-gradient(180deg, #f8fbff 0%, #ecf3f9 100%);
    overflow-x: hidden;
}

body.auth-shell::before,
body.auth-shell::after {
    content: "";
    position: fixed;
    width: 28rem;
    height: 28rem;
    border-radius: 999px;
    filter: blur(28px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

body.auth-shell::before {
    top: -8rem;
    left: -10rem;
    background: rgba(56, 179, 165, 0.22);
}

body.auth-shell::after {
    right: -8rem;
    bottom: -10rem;
    background: rgba(35, 89, 140, 0.18);
}

.auth-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: 1.5rem;
    width: 100%;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: calc(var(--auth-radius-xl) + 0.5rem);
    background: rgba(255, 255, 255, 0.36);
    backdrop-filter: blur(18px);
    box-shadow: var(--auth-shadow);
}

.auth-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.75rem;
    padding: 2rem;
    border-radius: var(--auth-radius-xl);
    background:
        linear-gradient(135deg, rgba(21, 87, 103, 0.96) 0%, rgba(24, 50, 73, 0.96) 52%, rgba(18, 39, 58, 0.98) 100%);
    color: #f8fbff;
}

.auth-hero::before {
    content: "";
    position: absolute;
    inset: -25% auto auto 56%;
    width: 18rem;
    height: 18rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(104, 218, 203, 0.32), transparent 65%);
    pointer-events: none;
}

.auth-hero::after {
    content: "";
    position: absolute;
    inset: auto auto -32% -10%;
    width: 24rem;
    height: 24rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 68%);
    pointer-events: none;
}

.auth-brand,
.auth-hero-copy,
.auth-grid,
.auth-highlights,
.auth-hero-footer {
    position: relative;
    z-index: 1;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    width: fit-content;
    padding: 0.6rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(248, 251, 255, 0.92);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.auth-brand-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #7fe089 0%, #5fd0c6 100%);
    box-shadow: 0 0 0 0.35rem rgba(127, 224, 137, 0.14);
}

.auth-kicker {
    display: inline-block;
    margin-bottom: 0.9rem;
    color: rgba(248, 251, 255, 0.72);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-hero h1 {
    max-width: 12ch;
    margin-bottom: 1rem;
    font-size: clamp(2.35rem, 4vw, 4.1rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.03;
}

.auth-hero p {
    max-width: 40rem;
    margin-bottom: 0;
    color: rgba(248, 251, 255, 0.78);
    font-size: 1.02rem;
    line-height: 1.75;
}

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

.auth-metric {
    padding: 1rem 1rem 1.1rem;
    border-radius: var(--auth-radius-md);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-metric strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #ffffff;
}

.auth-metric span {
    display: block;
    color: rgba(248, 251, 255, 0.72);
    font-size: 0.88rem;
    line-height: 1.5;
}

.auth-highlights {
    display: grid;
    gap: 0.85rem;
}

.auth-highlight {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
    padding: 0.95rem 1rem;
    border-radius: var(--auth-radius-md);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-highlight-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.82rem;
}

.auth-highlight strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
}

.auth-highlight p {
    margin: 0;
    color: rgba(248, 251, 255, 0.72);
    font-size: 0.88rem;
    line-height: 1.55;
}

.auth-hero-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.auth-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(248, 251, 255, 0.86);
    font-size: 0.9rem;
}

.auth-chip::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #7fe089;
}

.auth-panel {
    display: flex;
    align-items: center;
}

.auth-card {
    width: 100%;
    padding: 2rem;
    border-radius: var(--auth-radius-xl);
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 40px rgba(18, 48, 74, 0.09);
}

.auth-card-header {
    margin-bottom: 1.6rem;
}

.auth-card-header h2 {
    margin-bottom: 0.55rem;
    font-size: clamp(1.85rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.05em;
}

.auth-card-header p {
    margin-bottom: 0;
    color: var(--auth-text-soft);
    line-height: 1.7;
}

.auth-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: var(--auth-brand-soft);
    color: var(--auth-brand-strong);
    font-size: 0.84rem;
    font-weight: 700;
}

.auth-pill::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: var(--auth-brand);
}

.auth-alert {
    margin-bottom: 1.15rem;
    padding: 0.9rem 1rem;
    border-radius: var(--auth-radius-sm);
    background: rgba(201, 75, 97, 0.08);
    border: 1px solid rgba(201, 75, 97, 0.16);
    color: #a33a4d;
    font-size: 0.94rem;
}

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

.auth-field label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--auth-text);
    font-size: 0.92rem;
    font-weight: 700;
}

.auth-field input {
    width: 100%;
    min-height: 3.5rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(18, 48, 74, 0.12);
    border-radius: var(--auth-radius-sm);
    background: rgba(255, 255, 255, 0.94);
    color: var(--auth-text);
    box-shadow: inset 0 1px 2px rgba(18, 48, 74, 0.03);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.auth-field input:focus {
    outline: 0;
    border-color: rgba(31, 122, 140, 0.48);
    box-shadow: 0 0 0 0.25rem rgba(31, 122, 140, 0.14);
    transform: translateY(-1px);
}

.auth-field input::placeholder {
    color: #9aa8b6;
}

.auth-actions {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.25rem;
}

.auth-submit {
    min-height: 3.4rem;
    border: 0;
    border-radius: var(--auth-radius-sm);
    background: linear-gradient(135deg, #23879a 0%, #1b6270 100%);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 18px 34px rgba(31, 122, 140, 0.22);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.auth-submit:hover,
.auth-submit:focus {
    color: #ffffff;
    transform: translateY(-1px);
    filter: saturate(1.05);
    box-shadow: 0 20px 36px rgba(31, 122, 140, 0.26);
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: center;
    color: var(--auth-text-soft);
    font-size: 0.92rem;
}

.auth-links a {
    color: var(--auth-brand-strong);
    font-weight: 700;
    text-decoration: none;
}

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

.auth-note {
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(18, 48, 74, 0.08);
    color: var(--auth-text-soft);
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 991.98px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .auth-container {
        align-items: stretch;
    }

    .auth-layout {
        gap: 0.9rem;
        padding: 0.85rem;
        border-radius: 1.5rem;
    }

    .auth-hero,
    .auth-card {
        padding: 1.35rem;
        border-radius: 1.5rem;
    }

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

@media (max-width: 575.98px) {
    body.auth-shell::before,
    body.auth-shell::after {
        width: 18rem;
        height: 18rem;
    }

    .auth-links {
        flex-direction: column;
        align-items: flex-start;
    }
}
