:root {
    --bg-dark: #0a0a0c;
    --bg-panel: #141418;
    --bg-hover: #1f1f25;
    --accent-red: #e53935;
    --accent-red-hover: #f44336;
    --accent-red-glow: rgba(229, 57, 53, 0.4);
    --discord-blurple: #5865F2;
    --discord-blurple-hover: #4752c4;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(229, 57, 53, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(229, 57, 53, 0.03) 0%, transparent 40%);
}

a {
    color: var(--accent-red);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-red-hover);
    text-decoration: underline;
}


.login-container {
    width: 100%;
    max-width: 440px;
    padding: 2rem;
}

.login-box {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    display: inline-block;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: white;
    text-decoration: none;
    margin-bottom: 1rem;
}

.logo:hover {
    text-decoration: none;
    color: white;
}

.logo-accent {
    color: var(--accent-red);
}

.login-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}


.discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background: var(--discord-blurple);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    margin-top: 0.5rem;
}

.discord-btn:hover {
    background: var(--discord-blurple-hover);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

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

.discord-btn svg {
    flex-shrink: 0;
}


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

.login-footer a {
    font-weight: 600;
}


#authToast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1a1a20;
    border: 1px solid #2a2a30;
    color: #e0e0e0;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    z-index: 1000;
}

#authToast.error {
    background: rgba(229, 57, 53, 0.15);
    border-color: rgba(229, 57, 53, 0.4);
    color: #ef4444;
}

#authToast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}