/* =====================================================
   auth.css  —  Login / OTP pages (teal dashboard theme)
   ===================================================== */

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #f0fdf8;
    color: #1f2937;
}

/* ── AUTH LAYOUT ─────────────────────────────────── */
.auth-container {
    display: flex;
    min-height: 100vh;
}

/* LEFT PANEL */
.auth-left {
    flex: 1;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 320px; height: 320px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
}

.auth-left::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 240px; height: 240px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.brand {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.brand-icon {
    width: 64px; height: 64px;
    background: rgba(255,255,255,0.15);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 900; color: white;
    margin: 0 auto 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.brand h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.brand h1 span { color: #ccfbf1; }

.brand p {
    font-size: 16px;
    opacity: 0.85;
    max-width: 320px;
    line-height: 1.6;
}

.brand-features {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.brand-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.brand-feature-dot {
    width: 8px; height: 8px;
    background: #ccfbf1;
    border-radius: 50%;
    flex-shrink: 0;
}

/* RIGHT PANEL */
.auth-right {
    width: 480px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border-left: 1px solid #e5e7eb;
}

.auth-box { width: 100%; }

.auth-box h2 {
    font-size: 26px;
    font-weight: 800;
    color: #134e4a;
    margin-bottom: 6px;
    letter-spacing: -0.4px;
}

.auth-box .auth-sub {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 28px;
}

.auth-error{
    background:#fef2f2;
    border:1px solid #fecaca;
    color:#dc2626;
    padding:12px;
    border-radius:10px;
    margin-bottom:16px;
    font-size:14px;
    font-weight:600;
}

.error-popup{
    position:fixed;
    top:20px;
    right:20px;
    background:#ef4444;
    color:white;
    padding:14px 20px;
    border-radius:12px;
    font-weight:600;
    z-index:9999;
    box-shadow:0 10px 30px rgba(0,0,0,.2);
    animation:slideIn .3s ease;
}

@keyframes slideIn{
    from{
        transform:translateX(100%);
        opacity:0;
    }
    to{
        transform:translateX(0);
        opacity:1;
    }
}

.otp-container{
    display:flex;
    gap:12px;
    justify-content:center;
    margin:30px 0;
}

.otp-input{
    width:55px;
    height:60px;
    border-radius:14px;
    border:1px solid #334155;
    background:#0f172a;
    color:white;
    text-align:center;
    font-size:24px;
    font-weight:700;
}

.otp-input:focus{
    outline:none;
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.2);
}

/* FORM */
.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e5e7eb;
    outline: none;
    border-radius: 9px;
    background: #f9fafb;
    color: #1f2937;
    font-size: 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: border-color 0.15Ss, box-shadow 0.15s;
}

.form-group input:focus {
    border-color: #0d9488;
    background: white;
    box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}

.form-group input::placeholder { color: #9ca3af; }

/* BUTTON */
.btn-primary {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 9px;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: opacity 0.15s, transform 0.15s;
    letter-spacing: 0.2px;
}

.btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0); }

/* BOTTOM TEXT */
.bottom-text {
    margin-top: 22px;
    text-align: center;
    color: #6b7280;
    font-size: 13px;
}

.bottom-text a {
    color: #0d9488;
    text-decoration: none;
    font-weight: 600;
}

.bottom-text a:hover { text-decoration: underline; }

/* DIVIDER */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #9ca3af;
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* ── OTP PAGE ─────────────────────────────────────── */
.otp-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0fdf8;
}

.otp-box {
    width: 420px;
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 32px rgba(13,148,136,0.08);
}

.otp-icon {
    width: 56px; height: 56px;
    background: #f0fdfa;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    margin: 0 auto 16px;
    border: 1px solid #ccfbf1;
}

.otp-box h2 {
    font-size: 22px;
    font-weight: 800;
    color: #134e4a;
    margin-bottom: 6px;
}

.otp-text {
    margin-top: 8px;
    margin-bottom: 24px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
}

.otp-input {
    width: 100%;
    padding: 16px;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 10px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    color: #134e4a;
    margin-bottom: 20px;
    font-family: 'JetBrains Mono', monospace;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}

.otp-input:focus {
    border-color: #0d9488;
    background: white;
    box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}

.otp-resend {
    margin-top: 16px;
    font-size: 13px;
    color: #6b7280;
}

.otp-resend a {
    color: #0d9488;
    text-decoration: none;
    font-weight: 600;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
    .auth-left { display: none; }
    .auth-right { width: 100%; }
    .otp-box { width: 90%; max-width: 420px; }
}