:root {
    --primary:    #d45b07;
    --primary-dk: #be4e03;
    --primary-lt: #eba94a;
    --text-dark:  #1e293b;
    --text-mid:   #64748b;
    --text-light: #94a3b8;
    --border:     #e2e8f0;
    --bg:         #ffefd8;
    --white:      #ffffff;
    --error:      #ef4444;
    --success:    #10b981;
    --radius:     14px;
}

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

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    background: var(--bg);
    min-height: 100vh;
}

/* ── Auth Card Wrapper ── */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.card-auth {
    display: grid;
    grid-template-columns: 420px 1fr;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.05),
                0 20px 60px -10px rgba(212,91,7,.18);
    overflow: hidden;
    width: 100%;
    max-width: 840px;
}

/* ── Side Panel (Common) ── */
.side-panel {
    background: linear-gradient(160deg, #eba94a 0%, #d45b07 100%);
    padding: 52px 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.side-panel::before,
.side-panel::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.07);
}
.side-panel::before { width: 320px; height: 320px; top: -80px; right: -80px; }
.side-panel::after  { width: 200px; height: 200px; bottom: -50px; left: -50px; }

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    z-index: 1;
}

.brand-mark {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.3px;
}

.side-body { z-index: 1; }
.side-body h2 {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
}
.side-body p {
    font-size: .97rem;
    color: rgba(255,255,255,.72);
    line-height: 1.65;
}

/* ── Form Side ── */
.form-side {
    padding: 52px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-head { margin-bottom: 32px; }
.form-head h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.form-head p { font-size: .95rem; color: var(--text-mid); }

/* ── Form Controls ── */
.field { margin-bottom: 18px; }
.field label {
    display: block;
    font-size: .88rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 7px;
    text-transform: uppercase;
}

.input-box {
    position: relative;
    display: flex;
    align-items: center;
}

.input-box .ico {
    position: absolute;
    left: 14px;
    color: var(--text-light);
    font-size: .85rem;
}

.input-box input {
    width: 100%;
    padding: 11px 42px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: .97rem;
    color: var(--text-dark);
    background: #fff;
    outline: none;
    transition: all .2s;
}

.input-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(212,91,7,.12);
}

.input-box input.err { border-color: var(--error); background: #fff8f8; }

/* ── Buttons ── */
.btn-submit {
    width: 100%;
    padding: 13px;
    background: var(--primary);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: all .25s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212,91,7,.45);
}

/* ── Alert Styles ── */
.alert-err {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 11px 14px;
    margin-bottom: 18px;
    font-size: .92rem;
    color: #b91c1c;
}

/* ── Dashboard Stats ── */
.stat-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.stat-card .card-body { padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; }
.stat-info .stat-value { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; margin-bottom: 4px; }
.stat-info .stat-label { font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.8); text-transform: uppercase; }
.stat-icon-wrap { width: 58px; height: 58px; background: rgba(255,255,255,.2); border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.stat-icon-wrap i { color: #fff; font-size: 1.5rem; }

.card-indigo  { background: linear-gradient(135deg, #f97316, #fb923c); }
.card-purple  { background: linear-gradient(135deg, #fb923c, #fdba74); }
.card-emerald { background: linear-gradient(135deg, #10b981, #34d399); }
.card-amber   { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.card-rose    { background: linear-gradient(135deg, #f43f5e, #fb7185); }
.card-sky     { background: linear-gradient(135deg, #0ea5e9, #38bdf8); }

/* ── Spinner ── */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ── */
@media (max-width: 720px) {
    .card-auth { grid-template-columns: 1fr; max-width: 440px; }
    .side-panel { display: none; }
    .form-side { padding: 40px 32px; }
}
