:root {
    --auth-ink: #1f2937;
    --auth-muted: #6c757d;
    --auth-line: #dee2e6;
    --auth-primary: #0d6efd;
    --auth-primary-dark: #084298;
}

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

body.login-page {
    background: #f4f6f9;
    color: var(--auth-ink);
    overflow-x: hidden;
}

body.login-page #bg-canvas {
    display: none;
}

.auth-app-wrapper .app-main,
.auth-app-wrapper .container-fluid {
    display: block !important;
    min-height: 100vh;
    padding: 0 !important;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 520px);
    min-height: 100vh;
}

.auth-hero {
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18), transparent 30%),
        linear-gradient(145deg, var(--auth-primary), var(--auth-primary-dark));
    color: #fff;
    display: flex;
    min-height: 100%;
    overflow: hidden;
    padding: clamp(2rem, 6vw, 5.5rem);
    position: relative;
}

.auth-hero::after {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    content: "";
    height: min(54vw, 720px);
    position: absolute;
    right: -22%;
    top: 34%;
    width: min(54vw, 720px);
}

.auth-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 720px;
    position: relative;
    width: 100%;
    z-index: 1;
}

.auth-hero-brand,
.auth-brand {
    align-items: center;
    display: inline-flex;
    gap: 0.85rem;
    text-decoration: none;
}

.auth-hero-brand {
    color: #fff;
}

.auth-hero-brand:hover {
    color: #fff;
    text-decoration: none;
}

.auth-hero-logo,
.auth-brand-logo {
    border-radius: 0.8rem;
    display: block;
    height: 3.25rem;
    width: 3.25rem;
}

.auth-hero-brand-name {
    display: block;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
}

.auth-hero-brand-line,
.auth-brand small {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    margin-top: 0.2rem;
}

.auth-hero-brand-line {
    color: rgba(255, 255, 255, 0.72);
}

.auth-hero-copy {
    margin: auto 0;
    max-width: 650px;
    padding: 3rem 0;
}

.auth-eyebrow {
    color: var(--auth-primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.auth-hero .auth-eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

.auth-hero-copy h1 {
    font-size: clamp(2.75rem, 6vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.98;
    margin-bottom: 1.5rem;
}

.auth-hero-copy > p:last-child {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 620px;
}

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

.auth-hero-stats div {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding-top: 0.85rem;
}

.auth-hero-stats span,
.auth-hero-stats small {
    display: block;
}

.auth-hero-stats span {
    font-weight: 700;
}

.auth-hero-stats small {
    color: rgba(255, 255, 255, 0.68);
}

.auth-form-panel {
    align-items: center;
    background: #fff;
    display: flex;
    justify-content: center;
    padding: clamp(1.5rem, 5vw, 4rem);
}

.auth-card {
    max-width: 420px;
    width: 100%;
}

.auth-card-wide {
    max-width: 480px;
}

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

.auth-brand {
    color: var(--auth-ink);
    margin-bottom: 2.25rem;
}

.auth-brand:hover {
    color: var(--auth-ink);
    text-decoration: none;
}

.auth-brand strong {
    display: block;
    font-size: 1.3rem;
    line-height: 1;
}

.auth-brand small {
    color: var(--auth-muted);
}

.auth-card-header h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--auth-muted);
    margin-bottom: 0;
}

.auth-card .form-label {
    color: var(--auth-ink);
    font-size: 0.875rem;
    font-weight: 600;
}

.auth-card .form-control,
.auth-card .input-group-text {
    min-height: 2.75rem;
}

.auth-card .input-group-text {
    background: #f8f9fa;
    color: var(--auth-muted);
}

.auth-card a {
    color: var(--auth-primary);
}

.auth-card-links {
    border-top: 1px solid var(--auth-line);
    color: var(--auth-muted);
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    text-align: center;
}

.auth-card .alert-light {
    border: 1px solid var(--auth-line);
}

.auth-card .alert-light code {
    overflow-wrap: anywhere;
}

.auth-flash-stack,
.auth-app-wrapper .alert {
    position: relative;
    z-index: 3;
}

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

    .auth-hero {
        min-height: auto;
        padding: 1.25rem;
    }

    .auth-hero-copy,
    .auth-hero-stats {
        display: none;
    }

    .auth-form-panel {
        min-height: calc(100vh - 92px);
        padding: 2rem 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .auth-form-panel {
        align-items: flex-start;
    }

    .auth-card-header h2 {
        font-size: 1.65rem;
    }

    .auth-shell-signup .row > [class*="col-"] {
        width: 100%;
    }
}
