@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;800;900&display=swap');

:root {
    --gold: #d4a84b;
    --gold-light: #f0d78c;
    --gold-dark: #b8892e;
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a25;
    --bg-card-hover: #22222f;
    --text-primary: #ffffff;
    --text-secondary: #8888a0;
    --accent-purple: #7c3aed;
    --accent-blue: #3b82f6;
    --discord: #5865F2;
    --discord-hover: #4752c4;
    --glow-gold: rgba(212, 168, 75, 0.15);
    --glow-purple: rgba(124, 58, 237, 0.15);
}

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

html, body {
    height: 100%;
    overflow: hidden;
}

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

/* Animated background */
.bg-animated {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bg-animated::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--glow-gold) 0%, transparent 70%);
    top: -100px; right: -100px;
    animation: floatOrb 12s ease-in-out infinite;
}

.bg-animated::after {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--glow-purple) 0%, transparent 70%);
    bottom: -100px; left: -100px;
    animation: floatOrb 15s ease-in-out infinite reverse;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, 80px) scale(1.1); }
    50% { transform: translate(-30px, 120px) scale(0.95); }
    75% { transform: translate(80px, -40px) scale(1.05); }
}

/* Particles canvas */
#particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Grid overlay */
.grid-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    background-image:
        linear-gradient(rgba(212, 168, 75, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 168, 75, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Main login container */
.login-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 20px;
    width: 100%;
    max-width: 480px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo */
.logo-container {
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.logo-container img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(212, 168, 75, 0.3));
    animation: logoFloat 4s ease-in-out infinite;
    mix-blend-mode: screen;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.logo-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 8px;
}

.logo-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-top: 4px;
}

/* Login card */
.login-card {
    width: 100%;
    background: linear-gradient(145deg, rgba(26, 26, 37, 0.9) 0%, rgba(18, 18, 26, 0.95) 100%);
    border: 1px solid rgba(212, 168, 75, 0.12);
    border-radius: 24px;
    padding: 48px 40px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.6;
}

.login-card::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(212, 168, 75, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.card-header {
    text-align: center;
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}

.card-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.card-header p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Discord button */
.btn-discord {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    padding: 18px 28px;
    background: var(--discord);
    border: none;
    border-radius: 16px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.3);
    overflow: hidden;
}

.btn-discord::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-discord:hover {
    background: var(--discord-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.4);
}

.btn-discord:hover::before {
    opacity: 1;
}

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

.btn-discord svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
    position: relative;
    z-index: 1;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 75, 0.2), transparent);
}

.divider span {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
}

/* Features */
.features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s;
}

.feature-item:hover {
    background: rgba(212, 168, 75, 0.04);
    border-color: rgba(212, 168, 75, 0.1);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.feature-icon.gold { background: rgba(212, 168, 75, 0.1); }
.feature-icon.purple { background: rgba(124, 58, 237, 0.1); }
.feature-icon.blue { background: rgba(59, 130, 246, 0.1); }

.feature-text h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.feature-text p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Footer */
.login-footer {
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.login-footer p {
    font-size: 12px;
    color: var(--text-secondary);
}

.login-footer a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s;
}

.login-footer a:hover {
    color: var(--gold-light);
}

/* Responsive */
@media (max-width: 520px) {
    .login-wrapper {
        padding: 16px;
    }

    .login-card {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .logo-title {
        font-size: 32px;
    }

    .logo-container img {
        width: 120px;
        height: 120px;
    }
}
