
/* ══════════════════════════════════════════
   STEVIA — Login CSS
══════════════════════════════════════════ */

:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --error: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Outfit', sans-serif; background: var(--bg); color: var(--text); }

/* ── SPLIT ── */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }

/* ── LEFT ── */
.split-left {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    padding: 60px 48px;
    display: flex; align-items: center;
    position: sticky; top: 0; height: 100vh;
    overflow: hidden;
}
.split-left::before {
    content: '';
    position: absolute; bottom: -100px; left: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(249,115,22,0.12), transparent 70%);
    pointer-events: none;
}
.brand-content { position: relative; z-index: 1; }
.brand-logo {
    font-size: 14px; font-weight: 700;
    letter-spacing: 4px; color: var(--primary);
    text-transform: uppercase; margin-bottom: 48px;
}
.brand-title {
    font-size: 42px; font-weight: 800;
    color: white; line-height: 1.15;
    margin-bottom: 20px;
}
.brand-desc {
    font-size: 15px; color: rgba(255,255,255,0.45);
    line-height: 1.7; margin-bottom: 56px;
    max-width: 340px;
}

/* STATS */
.brand-stats {
    display: flex; align-items: center; gap: 0;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 24px;
}
.stat-item { flex: 1; text-align: center; }
.stat-value {
    font-size: 28px; font-weight: 900;
    color: var(--primary); margin-bottom: 4px;
}
.stat-label { font-size: 12px; color: rgba(255,255,255,0.35); font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.08); }

/* ── RIGHT ── */
.split-right {
    padding: 60px 48px;
    display: flex; align-items: center; justify-content: center;
}
.form-container { width: 100%; max-width: 400px; }

.form-header { margin-bottom: 36px; }
.form-title { font-size: 28px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.form-subtitle { font-size: 14px; color: var(--text-muted); }
.form-subtitle a { color: var(--primary); text-decoration: none; font-weight: 600; }
.form-subtitle a:hover { text-decoration: underline; }

/* FORM */
.form-body { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
    font-size: 13px; font-weight: 600; color: var(--text);
    display: flex; justify-content: space-between; align-items: center;
}
.forgot-link {
    font-size: 12px; color: var(--primary);
    text-decoration: none; font-weight: 500;
}
.forgot-link:hover { text-decoration: underline; }

.input-wrap { position: relative; }
.form-input {
    width: 100%; padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px; font-size: 14px;
    font-family: 'Outfit', sans-serif;
    color: var(--text); background: var(--bg);
    outline: none; transition: all 0.2s;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(249,115,22,0.08); }
.form-input.error { border-color: var(--error); }
.input-wrap .form-input { padding-right: 44px; }
.input-toggle {
    position: absolute; right: 12px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    font-size: 16px; opacity: 0.5; transition: opacity 0.2s;
}
.input-toggle:hover { opacity: 1; }

/* ERROR */
.form-error {
    background: rgba(239,68,68,0.06);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: 10px; padding: 12px 16px;
    font-size: 13px; color: var(--error); font-weight: 600;
}
.form-error.hidden { display: none; }

/* BUTTONS */
.btn-submit {
    width: 100%; padding: 14px;
    background: var(--primary); color: white;
    border: none; border-radius: 10px;
    font-size: 15px; font-weight: 700;
    cursor: pointer; font-family: 'Outfit', sans-serif;
    transition: all 0.2s;
}
.btn-submit:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.divider {
    display: flex; align-items: center; gap: 12px;
    color: var(--text-muted); font-size: 13px;
}
.divider::before, .divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}

.btn-register {
    width: 100%; padding: 13px;
    background: transparent; color: var(--text);
    border: 1.5px solid var(--border);
    border-radius: 10px; font-size: 14px; font-weight: 600;
    cursor: pointer; font-family: 'Outfit', sans-serif;
    text-decoration: none; display: block; text-align: center;
    transition: all 0.2s;
}
.btn-register:hover { border-color: var(--primary); color: var(--primary); }

/* MODAL */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; padding: 20px;
}
.modal-overlay.hidden { display: none; }
.modal-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 20px; width: 100%; max-width: 440px;
    padding: 28px; box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-title { font-size: 20px; font-weight: 800; }
.modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-muted); }

/* RESPONSIVE */
@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; }
    .split-left { display: none; }
    .split-right { padding: 40px 24px; }
}
