@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

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

body {
    font-family: 'Orbitron', monospace;
    min-height: 100vh;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Partículas ninja flutuantes */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, #ffc107, transparent),
        radial-gradient(1px 1px at 90px 40px, #ff0080, transparent),
        radial-gradient(1px 1px at 130px 80px, #00f0ff, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: float 20s linear infinite;
    opacity: 0.3;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

.container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    width: 100%;
    max-width: 380px;
    position: relative;
    box-shadow: 
        0 25px 45px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
    animation: slideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

h2 {
    text-align: center;
    font-weight: 900;
    font-size: 2rem;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

h2.login {
    color: #00ff88;
    text-shadow: 0 0 20px #00ff88;
}

h2.register {
    color: #00f0ff;
    text-shadow: 0 0 25px #00f0ff;
}

h2.forgout {
    color: #ffc107;
    text-shadow: 0 0 25px #ffc107;
}

h2.reset {
    color: #ff0080;
    text-shadow: 0 0 20px #ff0080;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: #e0e0e0;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input:focus {
    outline: none;
    border-color: #ffc107;
    box-shadow: 0 0 25px rgba(255, 193, 7, 0.5);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn {
    width: 100%;
    padding: 1.2rem;
    color: #000;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btn.login {
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.btn.register {
    background: linear-gradient(45deg, #00f0ff, #00b8d4);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.4);
}

.btn.forgout {
    background: linear-gradient(45deg, #ffc107, #ffeb3b);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.4);
}

.btn.reset {
    background: linear-gradient(45deg, #ff0080, #ff4d88);
    box-shadow: 0 10px 30px rgba(255, 0, 128, 0.4);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.4);
}

.btn.login:hover {
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.4);
}

.btn.resgister:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 240, 255, 0.5);
}

.btn.forgout:hover {
    box-shadow: 0 20px 40px rgba(255, 193, 7, 0.5)
}

.btn.reset:hover {
    box-shadow: 0 20px 40px rgba(255, 0, 128, 0.5);
}

.btn:active {
    transform: translateY(-1px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.error {
    background: rgba(255, 50, 50, 0.15);
    border: 1px solid rgba(255, 50, 50, 0.3);
    color: #ff6b6b;
    font-size: 0.875rem;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    animation: shake 0.5s ease-in-out;
}

.success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
    font-size: 0.9rem;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    animation: bounce 0.6s ease-in-out;
}

.success-msg {
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
    font-size: 0.875rem;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.resend-section {
    background: rgba(33, 150, 243, 0.15);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.resend-btn {
    background: linear-gradient(45deg, #2196f3, #1976d2);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
    font-weight: 700;
    transition: all 0.3s ease;
}

.resend-btn:hover {
    box-shadow: 0 10px 25px rgba(33, 150, 243, 0.4);
    transform: translateY(-2px);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.links {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

.links a {
    color: #00ff88;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    display: inline-block;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.links a:hover {
    color: #fff;
    background: rgba(0, 255, 136, 0.3);
    text-shadow: 0 0 15px #00ff88;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.4);
}

.links a:not(:last-child)::after {
    content: ' | ';
    color: #666;
}

.links-login {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

.links-login a {
    color: #00ff88;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
}

.links-login a:hover {
    color: #fff;
    text-shadow: 0 0 10px #00ff88;
}

.links-login a:not(:last-child)::after {
    content: ' | ';
    color: #666;
}

/* Responsivo */
@media (max-width: 480px) {
    .container {
        margin: 1rem;
        padding: 2.5rem 2rem;
        max-width: 95%;
    }
}

/* Neon glow effect login */
@keyframes neonGlow {
    0%, 100% { text-shadow: 0 0 20px #00ff88; }
    50% { text-shadow: 0 0 30px #00ff88, 0 0 40px #00ff88; }
}

h2.login {
    animation: neonGlow 2s ease-in-out infinite;
}

/* Neon pulse ciano register */
@keyframes neonGlowCyan {
    0%, 100% { text-shadow: 0 0 20px #00f0ff, 0 0 30px #00f0ff; }
    50% { text-shadow: 0 0 30px #00f0ff, 0 0 50px #00f0ff, 0 0 60px #00f0ff; }
}

h2.register {
    animation: neonGlowCyan 2s ease-in-out infinite;
}

/* Neon pulse dourado forgout */
@keyframes neonGlowGold {
    0%, 100% { text-shadow: 0 0 20px #ffc107, 0 0 30px #ffc107; }
    50% { text-shadow: 0 0 30px #ffc107, 0 0 50px #ffc107, 0 0 60px #ffc107; }
}

h2.forgout {
    animation: neonGlowGold 2s ease-in-out infinite;
}

/* Neon pulse no título reset*/
@keyframes neonGlowPink {
    0%, 100% { text-shadow: 0 0 20px #ff0080, 0 0 30px #ff0080; }
    50% { text-shadow: 0 0 30px #ff0080, 0 0 50px #ff0080, 0 0 60px #ff0080; }
}

h2.reset {
    animation: neonGlowPink 2s ease-in-out infinite;
}

.container {
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem 2.5rem 2rem; /* Menos padding embaixo */
}

.container::-webkit-scrollbar {
    width: 6px;
}

.container::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

.container::-webkit-scrollbar-thumb {
    background: linear-gradient(#ff0080, #00ff88);
    border-radius: 10px;
}

.container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(#ff0080, #fff);
    box-shadow: 0 0 10px #ff0080;
}

@media (max-width: 480px) {
    .container {
        max-height: 95vh;
        padding: 2rem 1.5rem 1.5rem;
    }
}