/* ============================================================
   Login Page CSS
============================================================ */
:root {
    --primary:       #25D366;
    --primary-dark:  #128C7E;
    --primary-glow:  rgba(37, 211, 102, 0.25);
    --bg-base:       #08101d;
    --bg-card:       #111827;
    --text-primary:  #f1f5f9;
    --text-muted:    #64748b;
    --border:        rgba(255,255,255,0.08);
    --danger:        #ff4d6d;
    --radius-md:     12px;
    --radius-lg:     18px;
    --transition:    0.2s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Animated background blobs */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    pointer-events: none;
    animation: blobFloat 8s ease-in-out infinite alternate;
}
body::before {
    width: 500px; height: 500px;
    background: var(--primary);
    top: -150px; left: -100px;
}
body::after {
    width: 400px; height: 400px;
    background: #5b7fff;
    bottom: -100px; right: -100px;
    animation-delay: -4s;
}
@keyframes blobFloat {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(30px, 40px) scale(1.1); }
}

.login-wrap {
    width: 100%; max-width: 440px;
    padding: 16px;
    position: relative; z-index: 10;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 44px 40px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.6), 0 0 0 1px rgba(37,211,102,0.05);
    backdrop-filter: blur(10px);
}

.login-logo {
    display: flex; flex-direction: column; align-items: center;
    margin-bottom: 32px; gap: 12px;
}

.logo-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: white;
    box-shadow: 0 8px 30px var(--primary-glow);
    animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 8px 30px var(--primary-glow); }
    50%       { box-shadow: 0 8px 50px rgba(37,211,102,0.4); }
}

.login-logo h1 { font-size: 1.4rem; font-weight: 800; }
.login-logo p  { font-size: 0.82rem; color: var(--text-muted); }

.form-group { margin-bottom: 18px; }
.form-label { display: block; margin-bottom: 7px; font-size: 0.83rem; font-weight: 600; color: #94a3b8; }

.input-wrap { position: relative; }
.input-wrap .input-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 0.9rem; pointer-events: none;
}
.input-wrap input {
    width: 100%; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 12px 14px 12px 42px;
    color: var(--text-primary); font-size: 0.9rem; font-family: inherit;
    outline: none; transition: all var(--transition);
}
.input-wrap input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,211,102,0.12); }
.input-wrap input::placeholder { color: rgba(100,116,139,0.7); }

.toggle-pass {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    color: var(--text-muted); font-size: 0.9rem; transition: color var(--transition);
}
.toggle-pass:hover { color: var(--primary); }

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; border: none; border-radius: var(--radius-md);
    padding: 13px; font-size: 0.95rem; font-weight: 700; font-family: inherit;
    cursor: pointer; transition: all var(--transition);
    display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 6px 25px var(--primary-glow);
    margin-top: 8px;
}
.btn-login:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 8px 30px var(--primary-glow); }
.btn-login:active { transform: scale(0.98); }

.login-footer { text-align: center; margin-top: 24px; font-size: 0.8rem; color: var(--text-muted); }

.alert-error {
    background: rgba(255,77,109,0.1); border: 1px solid rgba(255,77,109,0.3);
    color: #ff8fa3; border-radius: var(--radius-md);
    padding: 12px 15px; font-size: 0.85rem;
    display: flex; align-items: center; gap: 8px; margin-bottom: 20px;
}
