/* ================================================================
   LOGIN PAGE STYLES — Booru Swipe Google OAuth
   ================================================================ */

:root {
    --login-bg: #06040d;
    --login-card-bg: rgba(20, 16, 42, 0.65);
    --login-border: rgba(255, 255, 255, 0.06);
    --login-primary: #ff007f;
    --login-accent: #7928ca;
    --login-text: #e2e8f0;
    --login-muted: #64748b;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background: var(--login-bg);
    color: var(--login-text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* ── Background Glows ─────────────────────────────────────────── */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.bg-glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #7928ca 0%, transparent 70%);
    top: -150px;
    left: -100px;
    animation: glowDrift1 12s ease-in-out infinite alternate;
}

.bg-glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #00f2fe 0%, transparent 70%);
    bottom: -100px;
    right: -80px;
    animation: glowDrift2 14s ease-in-out infinite alternate;
}

.bg-glow-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #ff007f 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    animation: glowDrift3 10s ease-in-out infinite alternate;
}

@keyframes glowDrift1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 40px) scale(1.15); }
}
@keyframes glowDrift2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, -30px) scale(1.1); }
}
@keyframes glowDrift3 {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.15; }
    100% { transform: translate(-40%, -60%) scale(1.2); opacity: 0.25; }
}

/* ── Floating Particles ───────────────────────────────────────── */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) scale(0.3); opacity: 0; }
}

/* ── Login Wrapper ────────────────────────────────────────────── */
.login-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 24px;
    width: 100%;
    max-width: 420px;
}

/* ── Login Card ───────────────────────────────────────────────── */
.login-card {
    width: 100%;
    background: var(--login-card-bg);
    border: 1px solid var(--login-border);
    border-radius: 24px;
    padding: 40px 32px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 1px 0 rgba(255, 255, 255, 0.06) inset;
    animation: cardAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px) scale(0.97);
}

@keyframes cardAppear {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Logo / Brand ─────────────────────────────────────────────── */
.login-logo {
    text-align: center;
    margin-bottom: 8px;
}

.logo-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #ff007f, #7928ca);
    font-size: 28px;
    color: white;
    box-shadow: 0 8px 30px rgba(255, 0, 127, 0.4);
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { box-shadow: 0 8px 30px rgba(255, 0, 127, 0.4); }
    50% { box-shadow: 0 8px 40px rgba(121, 40, 202, 0.5); }
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #ff007f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.logo-tagline {
    font-size: 13px;
    color: var(--login-muted);
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* ── Divider ──────────────────────────────────────────────────── */
.login-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    margin: 24px 0;
}

/* ── Body ─────────────────────────────────────────────────────── */
.login-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.login-instruction {
    font-size: 14px;
    color: #94a3b8;
    text-align: center;
}

/* ── Google Sign-In Button ────────────────────────────────────── */
.google-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    background: white;
    color: #3c4043;
    border: none;
    border-radius: 14px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.google-signin-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(66,133,244,0.08), rgba(234,67,53,0.08));
    opacity: 0;
    transition: opacity 0.3s;
}

.google-signin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.google-signin-btn:hover::before {
    opacity: 1;
}

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

.google-icon {
    flex-shrink: 0;
}

/* ── Notice ───────────────────────────────────────────────────── */
.login-notice {
    font-size: 11px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
}

.login-notice i {
    color: #10b981;
    font-size: 12px;
}

/* ── Error Message ────────────────────────────────────────────── */
.login-error {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #f87171;
    animation: shakeIn 0.4s ease;
}

.login-error i {
    font-size: 16px;
    flex-shrink: 0;
}

.login-error.hidden {
    display: none;
}

@keyframes shakeIn {
    0% { transform: translateX(-8px); opacity: 0; }
    25% { transform: translateX(6px); }
    50% { transform: translateX(-4px); }
    75% { transform: translateX(2px); }
    100% { transform: translateX(0); opacity: 1; }
}

/* ── Footer ───────────────────────────────────────────────────── */
.login-footer {
    font-size: 11px;
    color: #334155;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Mobile Responsive ────────────────────────────────────────── */
@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .logo-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
        border-radius: 14px;
    }

    .logo-text {
        font-size: 24px;
    }

    .google-signin-btn {
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 12px;
    }
}
