:root {
    --bg-dark: #0a0a0a;
    --bg-gunmetal: #2a2d32;
    --card-bg: #1a1d21;
    --card-border: #333840;
    --text-primary: #f0f0f2;
    --text-secondary: #8b8f98;
    --primary: #e01b24;
    --primary-dark: #b91520;
    --primary-light: #ff4d56;
    --shadow-glow: 0 0 80px rgba(224, 27, 36, 0.12);
    --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
    --radius: 16px;
}

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

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow: hidden;
}

/* ─── Full-page Background ─── */
#root {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    position: relative;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(224, 27, 36, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(42, 45, 50, 0.6) 0%, transparent 50%),
        linear-gradient(180deg, #0a0a0a 0%, #111316 50%, #0a0a0a 100%);
}

/* Subtle animated orbs in the background */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
    animation: floatOrb 10s ease-in-out infinite;
}

.bg-orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(224, 27, 36, 0.08);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.bg-orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(42, 45, 50, 0.5);
    bottom: -80px;
    right: -60px;
    animation-delay: -4s;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(20px, -20px) scale(1.05);
    }
}

/* ─── Sign-in Card ─── */
.signin-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 48px 40px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    animation: fadeInUp 0.6s ease-out;
}

.signin-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(224, 27, 36, 0.15), transparent 50%, rgba(42, 45, 50, 0.3));
    z-index: -1;
    opacity: 0.6;
}

/* ─── Logo ─── */
.signin-logo {
    display: block;
    width: 64px;
    height: auto;
    margin: 0 auto 28px;
    filter: drop-shadow(0 2px 12px rgba(224, 27, 36, 0.3));
    animation: fadeInUp 0.6s ease-out 0.05s both;
}

/* ─── Header ─── */
.signin-header {
    text-align: center;
    margin-bottom: 36px;
}

.signin-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.signin-header p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    animation: fadeInUp 0.6s ease-out 0.15s both;
}

/* ─── Google Sign-In Button ─── */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    background: var(--text-primary);
    border: none;
    border-radius: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--bg-dark);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.google-btn:hover {
    background: #ffffff;
    box-shadow: 0 8px 32px rgba(224, 27, 36, 0.15);
    transform: translateY(-2px);
}

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

.google-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.google-btn span {
    position: relative;
    z-index: 1;
}

/* ─── Divider ─── */
.signin-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
    animation: fadeInUp 0.6s ease-out 0.25s both;
}

.signin-divider::before,
.signin-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--card-border);
}

.signin-divider span {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

/* ─── Footer Note ─── */
.signin-footer {
    text-align: center;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.signin-footer p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ─── Loading State ─── */
.google-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.google-btn.loading .btn-text {
    opacity: 0;
}

.google-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Toast Notification ─── */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 14px 20px;
    background: #2a1215;
    color: #ff8a8e;
    border: 1px solid #4a1a1e;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Plus Jakarta Sans', sans-serif;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.show {
    transform: translateX(0);
}

.toast svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ─── Responsive ─── */
@media (max-width: 480px) {
    .signin-card {
        margin: 16px;
        padding: 36px 24px;
    }

    .signin-header h1 {
        font-size: 20px;
    }
}