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

:root {
    --neon-purple: #bc13fe;
    --dark-bg: #0a0a0f;
    --cyber-accent: #6b00b3;
    --input-bg: rgba(255, 255, 255, 0.05);
}

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #0a0a1a 100%);
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

/* Nuevo fondo con efecto de circuito */
body::before {
    content: '';
    position: fixed;
    width: 200%;
    height: 200%;
    background: 
        linear-gradient(transparent 65%, rgba(92, 10, 145, 0.1) 65%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(188, 19, 254, 0.1) 2px,
            rgba(188, 19, 254, 0.1) 4px
        );
    transform: rotate(15deg);
    z-index: -1;
    animation: scan 20s linear infinite;
}

.login-container {
    background: rgba(10, 10, 15, 0.95);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(188, 19, 254, 0.3);
    width: 90%;
    max-width: 400px;
    margin: 2rem;
    position: relative;
    border: 1px solid var(--neon-purple);
    backdrop-filter: blur(10px);
}

h2 {
    color: var(--neon-purple);
    text-align: center;
    font-size: 2rem;
    margin: 0 0 2rem 0;
    letter-spacing: 2px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--neon-purple);
    box-shadow: 0 0 15px var(--neon-purple);
}

form {
    position: relative;
    z-index: 1;
}

label {
    color: var(--neon-purple);
    display: block;
    margin: 1.5rem 0 0.8rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

input {
    width: calc(100% - 40px);
    padding: 15px 20px;
    margin-bottom: 1.5rem;
    background: var(--input-bg);
    border: 1px solid var(--neon-purple);
    border-radius: 4px;
    color: white;
    font-family: sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-family: sans-serif;
    letter-spacing: 1px;
}

input:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.5);
    border: 1px solid #d86cff;
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #6b00b3 0%, #bc13fe 100%);
    border: none;
    border-radius: 4px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-login:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(188, 19, 254, 0.5);
}

.google-login {
    margin: 2rem 0;
    position: relative;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--neon-purple);
    border-radius: 4px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-google:hover {
    background: rgba(188, 19, 254, 0.2);
    transform: scale(1.02);
}

.btn-google img {
    width: 24px; /* Aumenta el tamaño si es necesario */
    height: 24px;
    filter: brightness(1);
}

.register-link {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.register-link a {
    color: var(--neon-purple);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.register-link a:hover {
    text-shadow: 0 0 10px rgba(188, 19, 254, 0.7);
}

.error-message {
    background: rgba(255, 0, 51, 0.2);
    color: #ff0033;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    border: 1px solid #ff0033;
    animation: pulse 2s infinite;
    font-size: 0.9rem;
}

@keyframes scan {
    0% { transform: rotate(15deg) translateY(0); }
    100% { transform: rotate(15deg) translateY(-100%); }
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

@media (max-width: 480px) {
    .login-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    input {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .btn-login {
        padding: 12px;
        font-size: 1rem;
    }
}