* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #1a0a0a 0%, #2d1410 50%, #1f0e0a 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffe6e0;
    overflow: hidden;
    position: relative;
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

.login-card {
    background: linear-gradient(145deg, rgba(48, 20, 15, 0.95), rgba(35, 15, 12, 0.95));
    border-radius: 25px;
    padding: 40px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 107, 53, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5),
               inset 0 1px 0 rgba(255, 140, 66, 0.1);
    animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 140, 66, 0.04) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.logo-icon {
    font-size: 60px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 20px rgba(255, 140, 66, 0.6));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.app-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ff4444 0%, #ff8c42 50%, #ffb703 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.app-subtitle {
    color: #8892b0;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 66, 0.4), transparent);
    margin: 30px 0;
}

.login-content {
    position: relative;
    z-index: 2;
}

.login-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #ffe6e0;
}

.login-description {
    color: #8892b0;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.error-message {
    background: rgba(255, 119, 168, 0.1);
    border: 1px solid rgba(255, 119, 168, 0.3);
    border-radius: 10px;
    padding: 12px 15px;
    color: #ff77a8;
    font-size: 14px;
    margin-bottom: 20px;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.discord-login-btn {
    width: 100%;
    background: linear-gradient(145deg, #ff4444, #ff6b35);
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
    position: relative;
    overflow: hidden;
}

.discord-login-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.discord-login-btn:hover::before {
    width: 300px;
    height: 300px;
}

.discord-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.5);
}

.discord-login-btn:active {
    transform: translateY(0);
}

.discord-icon {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
}

.discord-login-btn span {
    position: relative;
    z-index: 1;
}

.security-note {
    margin-top: 25px;
    padding: 15px;
    background: rgba(255, 140, 66, 0.06);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 140, 66, 0.2);
}

.shield-icon {
    width: 20px;
    height: 20px;
    color: #ff8c42;
    flex-shrink: 0;
}

.security-note p {
    font-size: 12px;
    color: #8892b0;
    line-height: 1.5;
    margin: 0;
}

.footer-links {
    margin-top: 30px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
    position: relative;
    z-index: 2;
}

.footer-link {
    color: #ff8c42;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-link:hover {
    color: #ffb703;
    text-decoration: underline;
}

.separator {
    margin: 0 10px;
    color: #64748b;
}

/* Background decoration */
.background-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    transition: transform 0.3s ease;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: pulse 4s ease-in-out infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 68, 68, 0.3), transparent);
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 140, 66, 0.3), transparent);
    bottom: -200px;
    right: -200px;
    animation-delay: 1s;
}

.circle-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 183, 3, 0.3), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 2s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .login-card {
        padding: 30px 25px;
    }

    .app-title {
        font-size: 26px;
    }

    .login-content h2 {
        font-size: 20px;
    }
}

