:root {
    --dockmann-red: #d71920;
    --dockmann-red-dark: #a90f15;
    --dockmann-red-soft: #fff1f2;
    --text: #1d2025;
    --text-soft: #626873;
    --border: #e4e7ec;
    --background: #f4f5f7;
    --surface: #ffffff;
    --surface-dark: #17191d;
    --success: #159447;
    --success-soft: #ecf9f1;
    --danger: #c8242c;
    --danger-soft: #fff0f1;
    --shadow: 0 18px 45px rgba(26, 30, 36, 0.09);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background: var(--background);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.auth-page {
    background:
        radial-gradient(
            circle at top right,
            rgba(215, 25, 32, 0.13),
            transparent 38%
        ),
        #eef0f3;
}

.auth-main {
    display: flex;
    min-height: 100vh;
    padding: 32px;
    align-items: center;
    justify-content: center;
}

.auth-shell {
    display: grid;
    width: min(1120px, 100%);
    min-height: 680px;
    overflow: hidden;
    grid-template-columns: 1.05fr 0.95fr;
    background: var(--surface);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.auth-visual {
    display: flex;
    min-height: 680px;
    padding: 48px;
    color: white;
    flex-direction: column;
    background:
        linear-gradient(
            145deg,
            rgba(215, 25, 32, 0.98),
            rgba(128, 8, 13, 0.98)
        );
}

.auth-visual__content {
    max-width: 540px;
    margin: auto 0;
}

.auth-visual__content h1 {
    max-width: 500px;
    margin: 18px 0;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.auth-visual__content p {
    max-width: 490px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    line-height: 1.7;
}

.auth-visual__footer {
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-form-panel {
    display: flex;
    padding: 64px;
    align-items: center;
    justify-content: center;
}

.auth-form {
    width: min(390px, 100%);
}

.auth-form h2,
.setup-card h1,
.content-card h2 {
    margin: 10px 0;
    letter-spacing: -0.025em;
}

.auth-form h2 {
    font-size: 36px;
}

.form-intro {
    margin: 0 0 30px;
    color: var(--text-soft);
    line-height: 1.65;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand__mark {
    display: inline-grid;
    width: 46px;
    height: 46px;
    color: white;
    background: var(--dockmann-red);
    border-radius: 13px;
    font-size: 23px;
    font-weight: 800;
    place-items: center;
}

.auth-visual .brand__mark {
    color: var(--dockmann-red);
    background: white;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand__text strong {
    font-size: 20px;
    letter-spacing: -0.02em;
}

.brand__text small {
    margin-top: 5px;
    color: var(--text-soft);
    font-size: 12px;
}

.auth-visual .brand__text small {
    color: rgba(255, 255, 255, 0.66);
}

.brand--large .brand__mark {
    width: 54px;
    height: 54px;
    border-radius: 15px;
}

.brand--large .brand__text strong {
    font-size: 24px;
}

.eyebrow {
    display: inline-block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow--dark {
    color: var(--dockmann-red);
}

.form {
    display: grid;
    gap: 20px;
}

.field {
    display: grid;
    gap: 8px;
}

.field label {
    font-size: 14px;
    font-weight: 700;
}

.field input {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    color: var(--text);
    outline: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 11px;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.field input:focus {
    border-color: var(--dockmann-red);
    box-shadow: 0 0 0 4px rgba(215, 25, 32, 0.1);
}

.field__help {
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.5;
}

.checkbox {
    display: inline-flex;
    color: var(--text-soft);
    align-items: center;
    gap: 9px;
    font-size: 14px;
    cursor: pointer;
}

.checkbox input {
    width: 17px;
    height: 17px;
    accent-color: var(--dockmann-red);
}

.button {
    display: inline-flex;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    font-weight: 750;
    cursor: pointer;
    transition:
        transform 150ms ease,
        background-color 150ms ease,
        border-color 150ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button--primary {
    color: white;
    background: var(--dockmann-red);
}

.button--primary:hover {
    background: var(--dockmann-red-dark);
}

.button--secondary {
    color: var(--text);
    background: white;
    border: 1px solid var(--border);
}

.button--full {
    width: 100%;
}

.button--small {
    min-height: 38px;
    padding: 0 15px;
    font-size: 13px;
}

.flash {
    width: min(1120px, 100%);
    margin: 0 auto 22px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.flash--success {
    color: #0d6c34;
    background: var(--success-soft);
    border: 1px solid #bce8cc;
}

.flash--error {
    color: #982028;
    background: var(--danger-soft);
    border: 1px solid #f2c5c8;
}

.auth-form .flash,
.setup-card .flash {
    margin-bottom: 22px;
}

.setup-card {
    width: min(720px, 100%);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.setup-card__header {
    display: flex;
    padding: 24px 30px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.setup-card__body {
    padding: 42px;
}

.setup-card h1 {
    font-size: 34px;
}

.status-badge {
    display: inline-flex;
    min-height: 30px;
    padding: 0 11px;
    color: var(--dockmann-red);
    background: var(--dockmann-red-soft);
    border-radius: 999px;
    align-items: center;
    font-size: 12px;
    font-weight: 750;
}

.status-badge--success {
    color: var(--success);
    background: var(--success-soft);
}

.topbar {
    display: flex;
    min-height: 78px;
    padding: 0 40px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    align-items: center;
    justify-content: space-between;
}

.topbar__user {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar__identity {
    display: flex;
    text-align: right;
    flex-direction: column;
}

.topbar__identity strong {
    font-size: 14px;
}

.topbar__identity span {
    margin-top: 3px;
    color: var(--text-soft);
    font-size: 12px;
}

.app-main {
    width: min(1380px, calc(100% - 48px));
    margin: 0 auto;
    padding: 42px 0 70px;
}

.dashboard {
    display: grid;
    gap: 26px;
}

.dashboard-hero {
    display: flex;
    min-height: 210px;
    padding: 38px;
    color: white;
    background:
        linear-gradient(
            135deg,
            #202329,
            #111316
        );
    border-radius: var(--radius);
    align-items: flex-end;
    justify-content: space-between;
    box-shadow: var(--shadow);
}

.dashboard-hero h1 {
    margin: 12px 0;
    font-size: clamp(34px, 4vw, 50px);
    letter-spacing: -0.04em;
}

.dashboard-hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.65;
}

.system-status {
    display: flex;
    min-width: 220px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    align-items: center;
    gap: 12px;
}

.system-status__dot {
    width: 11px;
    height: 11px;
    background: #31d06f;
    border-radius: 999px;
    box-shadow: 0 0 0 6px rgba(49, 208, 111, 0.12);
}

.system-status div {
    display: flex;
    flex-direction: column;
}

.system-status small {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.55);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat-card,
.content-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.stat-card {
    display: flex;
    min-height: 170px;
    padding: 24px;
    flex-direction: column;
}

.stat-card__label {
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 700;
}

.stat-card__value {
    margin: 22px 0 10px;
    font-size: 42px;
    letter-spacing: -0.04em;
}

.stat-card__meta {
    margin-top: auto;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.5;
}

.content-card {
    padding: 30px;
}

.content-card__header {
    display: flex;
    padding-bottom: 24px;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.content-card h2 {
    font-size: 25px;
}

.progress-list {
    display: grid;
    padding-top: 12px;
}

.progress-item {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
    gap: 16px;
}

.progress-item:last-child {
    border-bottom: 0;
}

.progress-item__number {
    display: inline-grid;
    min-width: 38px;
    height: 38px;
    color: var(--text-soft);
    background: var(--background);
    border-radius: 10px;
    font-weight: 800;
    place-items: center;
}

.progress-item--complete .progress-item__number {
    color: white;
    background: var(--success);
}

.progress-item strong {
    display: block;
    margin-top: 2px;
}

.progress-item p {
    margin: 7px 0 0;
    color: var(--text-soft);
    line-height: 1.55;
}

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

    .auth-visual {
        min-height: 360px;
    }

    .auth-form-panel {
        padding: 48px 32px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 640px) {
    .auth-main {
        padding: 14px;
    }

    .auth-visual {
        min-height: 330px;
        padding: 30px;
    }

    .auth-form-panel,
    .setup-card__body {
        padding: 32px 22px;
    }

    .setup-card__header {
        padding: 20px;
    }

    .setup-card__header .status-badge {
        display: none;
    }

    .topbar {
        padding: 0 18px;
    }

    .brand--header .brand__text small,
    .topbar__identity {
        display: none;
    }

    .app-main {
        width: min(100% - 28px, 1380px);
        padding-top: 24px;
    }

    .dashboard-hero {
        padding: 26px;
    }

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

    .content-card {
        padding: 22px;
    }

    .content-card__header {
        gap: 18px;
        flex-direction: column;
    }
}