:root {
    --bg: #fafaf8;
    --surface: #ffffff;
    --border: #e8e8e4;
    --border-light: #f0f0ec;
    --text-primary: #0d0d0c;
    --text-secondary: #5c5c58;
    --text-muted: #a0a09a;
    --accent: #1a6b3c;
    --accent-light: #edf7f1;
    --accent-hover: #155730;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: "Geist", sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 248, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    height: 62px;
    gap: 32px;
}

.nav-logo {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.nav-logo-mark {
    width: 28px;
    height: 28px;
    background: var(--text-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo-mark svg {
    width: 14px;
    height: 14px;
    fill: #fff;
}

.auth-page {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 92px 32px 60px;
    gap: 64px;
}

.auth-left {
    flex: 1;
    max-width: 380px;
    padding-top: 24px;
    display: flex;
    flex-direction: column;
}

.auth-left-title {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1.8px;
    line-height: 1.08;
    margin-bottom: 14px;
}

.auth-left-title em {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}

.auth-left-sub {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.trust-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.trust-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--accent);
    flex-shrink: 0;
}

.trust-item strong {
    color: var(--text-primary);
}

.auth-right {
    width: 100%;
    max-width: 480px;
}

.auth-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ROLE TOGGLE */
.role-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--border-light);
    border-radius: 11px;
    padding: 4px;
    margin-bottom: 28px;
}

.role-btn {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    border: none;
    background: transparent;
    font-family: "Geist", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.role-btn.active {
    background: var(--surface);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* STEPPER */
.stepper {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 28px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.step-item.active {
    color: var(--text-primary);
}

.step-item.done {
    color: var(--accent);
}

.step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    background: var(--surface);
    transition: all 0.2s;
    flex-shrink: 0;
}

.step-item.active .step-circle {
    border-color: var(--text-primary);
    background: var(--text-primary);
    color: #fff;
}

.step-item.done .step-circle {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.step-line {
    flex: 1;
    height: 1.5px;
    background: var(--border);
    margin: 0 6px;
}

.step-line.done {
    background: var(--accent);
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: block;
}

.form-input {
    width: 100%;
    font-size: 14px;
    font-family: "Geist", sans-serif;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: var(--text-primary);
    background: var(--surface);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap .form-input {
    padding-left: 40px;
}

.input-icon-wrap .input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.cat-select-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 2px;
}

.cat-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
    background: var(--bg);
}

.cat-checkbox:hover {
    border-color: var(--text-primary);
    background: var(--surface);
}

.cat-checkbox input {
    accent-color: var(--accent);
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.btn-submit {
    width: 100%;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--text-primary);
    border: none;
    padding: 13px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    font-family: "Geist", sans-serif;
    letter-spacing: -0.2px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    background: #2a2a28;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-back {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: 1.5px solid var(--border);
    padding: 11px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
    font-family: "Geist", sans-serif;
    width: 100%;
    margin-top: 8px;
}

.btn-back:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.form-btns {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 8px;
}

.auth-footer {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 20px;
}

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

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

.terms-note {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 14px;
    line-height: 1.6;
}

.terms-note a {
    color: var(--accent);
    text-decoration: none;
}

/* Step panels */
.step-panel {
    display: none;
}

.step-panel.active {
    display: block;
}

@media (max-width: 800px) {
    .auth-left {
        display: none;
    }

    .auth-page {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 24px 16px;
    }

    .auth-page {
        padding: 80px 16px 40px;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .cat-select-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .auth-left {
        display: none;
    }

    .auth-page {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .nav-inner {
        padding: 0 12px;
    }

    .auth-page {
        padding: 80px 12px 40px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 24px 14px;
    }

    .auth-page {
        padding: 76px 10px 32px;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .cat-select-grid {
        grid-template-columns: 1fr;
    }

    .role-btn {
        font-size: 13px;
        padding: 9px 10px;
    }

    .form-btns {
        grid-template-columns: 1fr 2fr;
    }
}

@media (max-width: 360px) {
    .form-btns {
        grid-template-columns: 1fr;
    }
}
