/* css/auth-style.css - Premium Glassmorphism UI (Emerald/Teal Theme) */
:root {
    --bg-dark: #0f172a;
    --emerald-primary: #10b981;
    --emerald-hover: #059669;
    --teal-accent: #14b8a6;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --input-bg: rgba(15, 23, 42, 0.6);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* ── Background Orbs ── */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    animation: float 20s infinite ease-in-out;
}
.orb-1 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
    top: -100px; left: -100px;
}
.orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.2) 0%, transparent 70%);
    bottom: -150px; right: -100px;
    animation-delay: -10s;
}
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* ── Auth Container ── */
.auth-container {
    width: 100%; max-width: 420px;
    padding: 20px;
    z-index: 10;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* ── Brand Header ── */
.brand { text-align: center; margin-bottom: 30px; }
.brand-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.5));
}
.brand h2 {
    font-size: 1.8rem; font-weight: 700;
    background: linear-gradient(135deg, #10b981, #14b8a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}
.brand p { color: var(--text-muted); font-size: 0.95rem; }

/* ── Form Controls ── */
.input-group { margin-bottom: 20px; }
.input-group label {
    display: block; font-size: 0.85rem; font-weight: 500;
    color: var(--text-muted); margin-bottom: 8px; margin-left: 5px;
}
.input-wrapper { position: relative; }
.input-icon {
    position: absolute; left: 15px; top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem; opacity: 0.6;
}
.input-wrapper input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 15px 14px 45px;
    color: var(--text-main); font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}
.input-wrapper input:focus {
    outline: none;
    border-color: var(--emerald-primary);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

/* ── Button ── */
.btn-primary {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, var(--emerald-primary), var(--teal-accent));
    border: none; border-radius: 12px;
    color: #fff; font-size: 1rem; font-weight: 600;
    font-family: inherit; cursor: pointer;
    transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    margin-top: 10px;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}
.btn-primary:active { transform: translateY(0); }

/* ── Footer ── */
.switch-form { text-align: center; margin-top: 25px; font-size: 0.9rem; color: var(--text-muted); }
.switch-form a {
    color: var(--emerald-primary); text-decoration: none; font-weight: 600;
    transition: color 0.3s ease;
}
.switch-form a:hover { color: var(--teal-accent); text-decoration: underline; }

/* ── Messages ── */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: 12px; border-radius: 10px;
    font-size: 0.85rem; margin-bottom: 20px; text-align: center;
}

/* ── Loader ── */
.btn-loader {
    width: 18px; height: 18px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }