*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --auth-bg-top: #021616;
    --auth-bg-bottom: #063434;
    --auth-gold: #f2c94c;
    --auth-gold-deep: #d6a80d;
    --auth-text: #ffffff;
    --auth-text-soft: rgba(255, 255, 255, 0.74);
    --auth-border: rgba(242, 201, 76, 0.12);
    --auth-panel: rgba(255, 255, 255, 0.96);
    --auth-dark-text: #102120;
    --auth-dark-soft: #66706c;
    --auth-radius-xl: 32px;
    --auth-radius-lg: 28px;
    --auth-radius-md: 22px;
    --auth-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

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

body,
body.auth-body,
body.login-body,
body.onboarding-body {
    min-height: 100vh;
    overflow-x: hidden;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(242, 201, 76, 0.12), transparent 22%),
        linear-gradient(180deg, var(--auth-bg-top) 0%, var(--auth-bg-bottom) 100%);
    color: var(--auth-text);
}

body a,
body.auth-body a,
body.login-body a,
body.onboarding-body a {
    color: inherit;
    text-decoration: none;
}

.auth-shell,
.auth-layout,
.auth-page,
.auth-container {
    width: min(calc(100% - 64px), 1260px);
    margin: 0 auto;
    min-height: 100vh;
    display: grid;
    align-items: center;
    padding: 36px 0;
}

.auth-grid,
.auth-layout-grid,
.auth-page-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 0.92fr;
    gap: 28px;
    align-items: stretch;
}

.auth-left,
.auth-copy-panel,
.auth-content-panel,
.auth-side-panel,
.auth-right,
.auth-form-panel,
.auth-card-panel {
    border-radius: var(--auth-radius-xl);
    border: 1px solid var(--auth-border);
    background: linear-gradient(180deg, rgba(242, 201, 76, 0.06), rgba(255, 255, 255, 0.04));
    box-shadow: var(--auth-shadow);
    overflow: hidden;
}

.auth-left,
.auth-copy-panel,
.auth-content-panel,
.auth-side-panel {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 760px;
}

.auth-right,
.auth-form-panel,
.auth-card-panel {
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 760px;
}

.auth-brand,
.brand,
.auth-logo-row {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
}

.auth-brand-logo,
.brand-logo,
.auth-logo-row img,
.auth-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.auth-brand-name,
.brand-name,
.auth-logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--auth-text);
}

.auth-copy,
.auth-copy-wrap,
.auth-hero-copy {
    max-width: 620px;
    margin-top: 40px;
}

.auth-eyebrow,
.auth-badge,
.step-badge,
.auth-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(242, 201, 76, 0.08);
    border: 1px solid rgba(242, 201, 76, 0.14);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.84rem;
    font-weight: 700;
}

.auth-title,
.auth-copy h1,
.auth-copy-wrap h1,
.auth-hero-copy h1,
.auth-content-panel h1,
.auth-left h1 {
    margin: 18px 0 16px;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 0.94;
    letter-spacing: -0.06em;
    color: var(--auth-text);
    max-width: 8ch;
}

.auth-description,
.auth-copy p,
.auth-copy-wrap p,
.auth-hero-copy p,
.auth-content-panel p,
.auth-left p {
    margin: 0;
    max-width: 560px;
    color: var(--auth-text-soft);
    line-height: 1.75;
    font-size: 1.06rem;
}

.auth-showcase,
.auth-preview,
.auth-mini-dashboard,
.auth-side-preview {
    margin-top: 34px;
    border-radius: var(--auth-radius-lg);
    border: 1px solid rgba(242, 201, 76, 0.12);
    background: linear-gradient(180deg, rgba(242, 201, 76, 0.06), rgba(255, 255, 255, 0.03));
    padding: 22px;
    overflow: hidden;
}

.auth-showcase-top,
.auth-preview-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.auth-showcase-pill,
.auth-preview-pill,
.auth-preview-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(242, 201, 76, 0.1);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.84rem;
    font-weight: 700;
}

.auth-showcase-card,
.auth-preview-card {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(242, 201, 76, 0.1);
    padding: 18px;
}

.auth-showcase-stats,
.auth-preview-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.auth-stat,
.preview-stat {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--auth-dark-text);
    padding: 18px;
}

.auth-stat-label,
.preview-stat-label {
    display: block;
    font-size: 0.84rem;
    color: #66706c;
    margin-bottom: 8px;
}

.auth-stat-value,
.preview-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    color: #071716;
}

.auth-stat-meta,
.preview-stat-meta {
    display: block;
    margin-top: 8px;
    color: #2f7d63;
    font-size: 0.88rem;
    font-weight: 700;
}

.auth-chart,
.preview-chart {
    height: 170px;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 10px;
    align-items: end;
    padding-top: 10px;
}

.auth-chart span,
.preview-chart span {
    display: block;
    border-radius: 999px 999px 14px 14px;
    background: linear-gradient(180deg, var(--auth-gold) 0%, var(--auth-gold-deep) 100%);
}

.auth-form-card,
.auth-form-surface,
.form-card,
.auth-card {
    width: 100%;
    max-width: 560px;
    border-radius: var(--auth-radius-lg);
    background: var(--auth-panel);
    color: var(--auth-dark-text);
    padding: 34px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.14);
}

.auth-form-header,
.form-header {
    text-align: center;
    margin-bottom: 26px;
}

.auth-form-logo,
.form-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: cover;
    display: block;
    margin: 0 auto 18px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.auth-form-title,
.form-title,
.auth-form-card h1,
.auth-form-card h2,
.auth-form-surface h1,
.auth-form-surface h2 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1;
    letter-spacing: -0.05em;
    color: #071716;
}

.auth-form-subtitle,
.form-subtitle,
.auth-form-card .subtitle {
    margin: 0;
    color: var(--auth-dark-soft);
    font-size: 1rem;
    line-height: 1.6;
}

.auth-form,
form.auth-form,
.auth-form-card form,
.auth-form-surface form {
    display: grid;
    gap: 18px;
}

.auth-form-grid,
.form-grid {
    display: grid;
    gap: 16px;
}

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

.auth-field,
.form-field,
.auth-form-card label,
.auth-form-surface label {
    display: grid;
    gap: 8px;
}

.auth-field label,
.auth-field span,
.form-field label,
.form-field span,
.auth-form-card label span,
.auth-form-surface label span {
    font-size: 0.95rem;
    font-weight: 700;
    color: #071716;
}

.auth-input,
.auth-select,
.auth-textarea,
.auth-form-card input,
.auth-form-card select,
.auth-form-card textarea,
.auth-form-surface input,
.auth-form-surface select,
.auth-form-surface textarea {
    width: 100%;
    min-height: 56px;
    border-radius: 18px;
    border: 1px solid rgba(16, 33, 32, 0.12);
    background: #f7f8f7;
    color: #102120;
    padding: 0 16px;
    font: inherit;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-textarea,
.auth-form-card textarea,
.auth-form-surface textarea {
    min-height: 120px;
    padding: 14px 16px;
    resize: vertical;
}

.auth-input::placeholder,
.auth-textarea::placeholder,
.auth-form-card input::placeholder,
.auth-form-card textarea::placeholder,
.auth-form-surface input::placeholder,
.auth-form-surface textarea::placeholder {
    color: #7a8480;
}

.auth-input:focus,
.auth-select:focus,
.auth-textarea:focus,
.auth-form-card input:focus,
.auth-form-card select:focus,
.auth-form-card textarea:focus,
.auth-form-surface input:focus,
.auth-form-surface select:focus,
.auth-form-surface textarea:focus {
    border-color: rgba(214, 168, 13, 0.6);
    box-shadow: 0 0 0 4px rgba(242, 201, 76, 0.16);
    background: #ffffff;
}

.auth-form-row,
.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.auth-inline-link,
.auth-form-card .forgot-password,
.auth-form-card .forgot-password-link,
.auth-form-surface .forgot-password,
.auth-form-surface .forgot-password-link {
    font-size: 0.95rem;
    font-weight: 700;
    color: #375654;
}

.auth-inline-link:hover,
.auth-form-card .forgot-password:hover,
.auth-form-card .forgot-password-link:hover,
.auth-form-surface .forgot-password:hover,
.auth-form-surface .forgot-password-link:hover {
    color: #102120;
}

.auth-button,
.auth-form-card button,
.auth-form-surface button,
.auth-submit,
button.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    padding: 0 20px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--auth-gold), var(--auth-gold-deep));
    color: #0c1c1c;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.auth-button:hover,
.auth-form-card button:hover,
.auth-form-surface button:hover,
.auth-submit:hover,
button.primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(242, 201, 76, 0.35);
}

.auth-button:disabled,
.auth-form-card button:disabled,
.auth-form-surface button:disabled,
.auth-submit:disabled,
button.primary-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-divider {
    height: 1px;
    background: rgba(16, 33, 32, 0.08);
    margin: 4px 0;
}

.auth-footer,
.form-footer,
.auth-form-card .form-footer,
.auth-form-surface .form-footer {
    text-align: center;
    color: var(--auth-dark-soft);
    font-size: 1rem;
    line-height: 1.6;
}

.auth-footer a,
.form-footer a,
.auth-form-card .form-footer a,
.auth-form-surface .form-footer a {
    color: #102120;
    font-weight: 700;
}

.auth-footer a:hover,
.form-footer a:hover,
.auth-form-card .form-footer a:hover,
.auth-form-surface .form-footer a:hover {
    color: #375654;
}

.auth-message,
.auth-error,
.auth-success {
    min-height: 20px;
    font-size: 0.92rem;
    line-height: 1.5;
}

.auth-error {
    color: #c44b42;
}

.auth-success {
    color: #2f7d63;
}

.auth-muted {
    color: var(--auth-dark-soft);
}

.auth-visual {
    margin-top: 34px;
}

.auth-visual-card {
    border-radius: var(--auth-radius-lg);
    border: 1px solid rgba(242, 201, 76, 0.12);
    background: linear-gradient(180deg, rgba(242, 201, 76, 0.06), rgba(255, 255, 255, 0.03));
    padding: 22px;
    overflow: hidden;
}

.auth-visual-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.auth-visual-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(242, 201, 76, 0.1);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.84rem;
    font-weight: 700;
}

.auth-visual-pill--soft {
    background: rgba(255, 255, 255, 0.08);
}

.auth-kpi-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.auth-kpi-card {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--auth-dark-text);
    padding: 18px;
}

.auth-kpi-card small {
    display: block;
    font-size: 0.84rem;
    color: #66706c;
    margin-bottom: 8px;
}

.auth-kpi-card strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    color: #071716;
}

.auth-mini-chart {
    height: 170px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    align-items: end;
    padding-top: 10px;
}

.auth-mini-chart span {
    display: block;
    border-radius: 999px 999px 14px 14px;
    background: linear-gradient(180deg, var(--auth-gold) 0%, var(--auth-gold-deep) 100%);
}

.auth-card {
    width: 100%;
    max-width: 560px;
    border-radius: var(--auth-radius-lg);
    background: var(--auth-panel);
    color: var(--auth-dark-text);
    padding: 34px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.14);
}

.auth-card-head {
    text-align: center;
    margin-bottom: 26px;
}

.auth-card-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: cover;
    display: block;
    margin: 0 auto 18px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.auth-card-head h2 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1;
    letter-spacing: -0.05em;
    color: #071716;
}

.auth-card-head p {
    margin: 0;
    color: var(--auth-dark-soft);
    font-size: 1rem;
    line-height: 1.6;
}

.auth-field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.auth-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(16, 33, 32, 0.12);
    background: #f7f8f7;
    color: #102120;
    font-weight: 700;
}

.auth-secondary-button:hover {
    background: #ffffff;
}

.setup-list {
    display: grid;
    gap: 14px;
}

.setup-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(242, 201, 76, 0.1);
}

.setup-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    margin-top: 6px;
    background: linear-gradient(180deg, var(--auth-gold) 0%, var(--auth-gold-deep) 100%);
    flex-shrink: 0;
}

.setup-item strong {
    display: block;
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 4px;
}

.setup-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.6;
}

@media (max-width: 760px) {
    .auth-kpi-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {

    .auth-shell,
    .auth-layout,
    .auth-page,
    .auth-container {
        width: min(calc(100% - 40px), 1260px);
    }

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

    .auth-left,
    .auth-copy-panel,
    .auth-content-panel,
    .auth-side-panel,
    .auth-right,
    .auth-form-panel,
    .auth-card-panel {
        min-height: auto;
    }

    .auth-title,
    .auth-copy h1,
    .auth-copy-wrap h1,
    .auth-hero-copy h1,
    .auth-content-panel h1,
    .auth-left h1 {
        max-width: none;
    }

    .auth-form-card,
    .auth-form-surface,
    .form-card,
    .auth-card {
        max-width: 100%;
    }
}

@media (max-width: 760px) {

    .auth-shell,
    .auth-layout,
    .auth-page,
    .auth-container {
        width: min(calc(100% - 28px), 1260px);
        padding: 20px 0;
    }

    .auth-left,
    .auth-copy-panel,
    .auth-content-panel,
    .auth-side-panel,
    .auth-right,
    .auth-form-panel,
    .auth-card-panel {
        padding: 22px;
    }

    .auth-form-card,
    .auth-form-surface,
    .form-card,
    .auth-card {
        padding: 24px;
    }

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

    .auth-showcase-stats,
    .auth-preview-stats {
        grid-template-columns: 1fr;
    }

    .auth-title,
    .auth-copy h1,
    .auth-copy-wrap h1,
    .auth-hero-copy h1,
    .auth-content-panel h1,
    .auth-left h1 {
        font-size: clamp(2.4rem, 9vw, 4rem);
    }
}