* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0a;
    color: #e0e0e0;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    position: relative;
}

/* Elementos decorativos de fundo animados */
.background-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 8s ease-in-out infinite;
}

.glow-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #7c3aed, transparent);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.glow-orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #a78bfa, transparent);
    bottom: -100px;
    right: -100px;
    animation-delay: 2s;
}

.glow-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #8b5cf6, transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Container de login redesenhado */
.login-container {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(20px);
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.2),
                0 0 0 1px rgba(124, 58, 237, 0.1);
    width: 420px;
    max-width: 90vw;
    text-align: center;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

/* Seção do logo com ícone SVG */
.logo-section {
    margin-bottom: 30px;
}

.logo-icon {
    margin-bottom: 20px;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.5));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px rgba(167, 139, 250, 0.8));
    }
}

h1 {
    font-size: 2.2em;
    font-weight: 700;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.welcome-text {
    color: #a0a0a0;
    font-size: 0.95em;
    margin-bottom: 30px;
    font-weight: 400;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.3), transparent);
    margin: 30px 0;
}

/* Botão do Discord redesenhado com ícone */
#discord-login-btn {
    width: 100%;
    padding: 16px 24px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #5865F2, #4752C4);
    color: white;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4),
                0 0 0 1px rgba(88, 101, 242, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

#discord-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#discord-login-btn:hover::before {
    left: 100%;
}

#discord-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(88, 101, 242, 0.6),
                0 0 0 1px rgba(88, 101, 242, 0.3);
}

#discord-login-btn:active {
    transform: translateY(0);
}

#discord-login-btn svg {
    width: 24px;
    height: 24px;
}

/* Botão para voltar à home */
.back-home-btn {
    width: 100%;
    padding: 14px 24px;
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, 0.3);
    background: rgba(124, 58, 237, 0.1);
    color: #a78bfa;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.back-home-btn:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
}

.back-home-btn svg {
    width: 20px;
    height: 20px;
}

/* Botão Login Manual */
.manual-login-btn {
    width: 100%;
    padding: 14px 24px;
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, 0.3);
    background: rgba(124, 58, 237, 0.1);
    color: #a78bfa;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.manual-login-btn:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.5);
    transform: translateY(-2px);
}

.manual-login-btn svg {
    width: 20px;
    height: 20px;
}

/* Badge de segurança */
.security-badge {
    margin-top: 30px;
    padding: 12px 20px;
    background: rgba(124, 58, 237, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 8px;
    color: #a78bfa;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.security-badge svg {
    width: 16px;
    height: 16px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: left;
    font-size: 0.9em;
    line-height: 1.5;
}

.alert-error {
    background: rgba(237, 66, 69, 0.1);
    border: 1px solid rgba(237, 66, 69, 0.3);
    color: #ff6b6b;
}

.alert-error a {
    color: #a78bfa;
    text-decoration: underline;
}

.alert-error a:hover {
    color: #c4b5fd;
}

/* Form Inputs */
.form-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(124, 58, 237, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    color: #e0e0e0;
    font-size: 1em;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: rgba(124, 58, 237, 0.5);
    background: rgba(124, 58, 237, 0.1);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-input::placeholder {
    color: #666;
}

.form-help {
    display: block;
    margin-top: 8px;
    color: #a0a0a0;
    font-size: 0.85em;
}

.alert-success {
    background: rgba(87, 242, 135, 0.1);
    border: 1px solid rgba(87, 242, 135, 0.3);
    color: #57F287;
}

/* Responsividade */
@media (max-width: 480px) {
    .login-container {
        padding: 40px 30px;
    }

    h1 {
        font-size: 1.8em;
    }

    .glow-orb {
        filter: blur(60px);
    }
}

