/* ═══════════════════════════════════════════
   LOGIN PAGES — Shared styles
   ═══════════════════════════════════════════ */

/* Base reset + body */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #07000f;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
}

/* Ambient glow blobs */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    z-index: 0;
    animation: drift 12s ease-in-out infinite alternate;
}
.blob-1 { width: 500px; height: 500px; background: #7600ff; top: -150px; left: -100px; animation-delay: 0s; }
.blob-2 { width: 350px; height: 350px; background: #ca00ff; bottom: -100px; right: -80px; animation-delay: -4s; }

/* Card wrapper + entrance animation */
.card-wrap {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    animation: fadeUp 0.9s cubic-bezier(.22,1,.36,1) both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)  scale(1); }
}

/* Glass card */
.glass-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255,255,255,0.04) inset;
    transform-style: preserve-3d;
    will-change: transform;
}

/* Error box */
.error-box {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.3);
    color: #fca5a5;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

/* Card footer */
.card-footer {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.2);
    text-align: center;
}
.card-footer a { color: rgba(118,0,255,0.7); text-decoration: none; transition: color 0.2s; }
.card-footer a:hover { color: #a855f7; }


/* ═══════════════════════════════════════════
   CLIENT LOGIN — Google OAuth page
   ═══════════════════════════════════════════ */

/* Vanta background */
#vanta-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}

/* Logo (client) */
.logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    text-align: center;
}
.logo-icon {
    position: relative;
    width: 72px; height: 72px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 0 0 2px rgba(118,0,255,0.4), 0 0 32px rgba(118,0,255,0.3);
}
.logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.logo-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 22px;
    border: 2px solid rgba(118,0,255,0.5);
    animation: pulse-ring 2.5s ease-in-out infinite;
}
@keyframes pulse-ring {
    0%, 100% { transform: scale(1);   opacity: 0.6; }
    50%       { transform: scale(1.1); opacity: 0; }
}
.logo-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}
.logo-name span { color: #7600ff; }
.logo-sub {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Blob animations (client-specific extras) */
.blob-3 { width: 250px; height: 250px; background: #280058; top: 40%; left: 50%; animation-delay: -8s; }

@keyframes drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(30px, 20px) scale(1.08); }
}

/* Tagline */
.tagline {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.45);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Google button */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    background: rgba(255,255,255,0.97);
    color: #1a1a2e;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    padding: 0.875rem 1.5rem;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(.22,1,.36,1);
    box-shadow: 0 4px 20px rgba(118,0,255,0.2);
    border: none;
    cursor: pointer;
}
.google-btn:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(118,0,255,0.4);
}
.google-btn:active { transform: translateY(-1px); }
.google-btn svg { flex-shrink: 0; }

/* Tilt glare */
.js-tilt-glare-inner {
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%) !important;
}


/* ═══════════════════════════════════════════
   ADMIN LOGIN — Username/password page
   ═══════════════════════════════════════════ */

/* Logo (admin) */
.logo-img {
    width: 64px; height: 64px; border-radius: 16px;
    box-shadow: 0 0 0 2px rgba(118,0,255,0.4), 0 0 28px rgba(118,0,255,0.3);
    margin: 0 auto 0.75rem;
    display: block;
}
.logo-title { font-size: 1.35rem; font-weight: 700; color: #fff; }
.logo-title span { color: #7600ff; }
.logo-sub { font-size: 0.75rem; color: rgba(255,255,255,0.35); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.25rem; }

/* Form elements */
.form-group { margin-bottom: 1.1rem; }
.form-group-last { margin-bottom: 1.5rem; }
label { display: block; font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.4); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.4rem; }
input[type="text"], input[type="password"] {
    width: 100%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 11px;
    padding: 0.6rem 0.9rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus { border-color: rgba(118,0,255,0.6); box-shadow: 0 0 0 3px rgba(118,0,255,0.12); }
input::placeholder { color: rgba(255,255,255,0.2); }

/* Submit button */
.submit-btn {
    width: 100%;
    background: #7600ff;
    color: #fff;
    padding: 0.7rem 1.5rem;
    border-radius: 12px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.2s;
}
.submit-btn:hover { background: #8b1aff; box-shadow: 0 8px 28px rgba(118,0,255,0.45); transform: translateY(-1px); }
