:root {
    --bg-primary: #faf8f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f3f0eb;
    --bg-accent-soft: #e8f5ec;
    --text-primary: #1b1f23;
    --text-secondary: #4a5568;
    --text-tertiary: #8899a6;
    --text-on-accent: #ffffff;
    --accent: #1a7742;
    --accent-hover: #145e34;
    --accent-soft: #d4edda;
    --accent-glow: rgba(26, 119, 66, 0.15);
    --warm: #c97b3a;
    --border: #e2ddd5;
    --error: #c0392b;
    --error-bg: #fdedeb;
    --error-border: #f5c6cb;
    --success: #1a7742;
    --success-bg: #e8f5ec;
    --success-border: #a3d9b1;
    --card-shadow: 0 2px 16px rgba(27, 31, 35, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
    --card-shadow-hover: 0 8px 32px rgba(27, 31, 35, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.06);
    --radius: 14px;
    --radius-sm: 10px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

body.auth-page {
    margin: 0;
    font-family: 'Figtree', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
}

.auth-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.auth-bg::before,
.auth-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.auth-bg::before {
    top: -30%;
    right: -20%;
    width: 760px;
    height: 760px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
}

.auth-bg::after {
    bottom: -20%;
    left: -15%;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(201, 123, 58, 0.08) 0%, transparent 70%);
}

.auth-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .auth-shell {
        flex-direction: row;
    }
}

.auth-hero {
    display: none;
    width: 410px;
    background: var(--accent);
    color: var(--text-on-accent);
    padding: 32px 32px;
    position: relative;
}

.auth-hero .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 22px;
    font-weight: 800;
}

.auth-hero .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-hero h2 {
    margin: 0 0 14px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 34px;
    line-height: 1.2;
}

.auth-hero p {
    margin: 0 0 26px;
    opacity: 0.85;
    line-height: 1.65;
}

.auth-hero ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.auth-hero li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
}

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 18px;
}

.auth-wrap {
    width: 100%;
    max-width: 420px;
}

.auth-mobile-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--accent);
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 22px;
    font-weight: 800;
}

.auth-header {
    text-align: center;
    margin-bottom: 16px;
}

.auth-header h1 {
    margin: 0 0 6px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 26px;
}

.auth-header p {
    margin: 0;
    color: var(--text-secondary);
}

.auth-card {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 22px 24px;
    border-top: 4px solid var(--accent);
}

.alert-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 10px;
    padding: 14px 14px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-error { background: var(--error-bg); border: 1px solid var(--error-border); color: var(--error); }
.alert-note { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; }

.field { margin-bottom: 16px; }
.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.input-shell {
    position: relative;
}

.input-shell i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
}

.input-shell input,
.input-shell select {
    width: 100%;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px 12px 42px;
    font-size: 14px;
    outline: none;
    background: #fff;
    color: var(--text-primary);
    transition: var(--transition);
}

.input-shell input:focus,
.input-shell select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-shell .pw-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--text-tertiary);
    cursor: pointer;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.auth-btn {
    width: 100%;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    padding: 13px 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.auth-btn:hover { background: var(--accent-hover); }

.auth-footer {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.muted-help {
    color: #6b7280;
    font-size: 12px;
    margin-top: 4px;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 760px) {
    .two-col { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .auth-hero { display: block; }
    .auth-mobile-brand { display: none; }
}
