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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
    min-height: 100vh;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Animación de fondo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundShift 10s ease-in-out infinite alternate;
}

@keyframes backgroundShift {
    0% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

/* Formas decorativas de fondo */
body::after {
    content: '';
    position: fixed;
    top: 10%;
    right: 10%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.1);
    animation: float 8s ease-in-out infinite;
    z-index: 0;
}

/* Segunda forma decorativa */
.register-container::before {
    content: '';
    position: fixed;
    bottom: 15%;
    left: 10%;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.08);
    animation: float 10s ease-in-out infinite;
    animation-delay: -5s;
    z-index: 0;
    pointer-events: none;
}

@keyframes float {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0px) scale(1);
    }
    50% {
        opacity: 0.1;
        transform: translateY(-30px) scale(1.1);
    }
}

.register-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 10;
}

h1 {
    font-size: 2.2rem;
    color: #1e3a8a;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 700;
}

.error-message {
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    color: #c53030;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #feb2b2;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(197, 48, 48, 0.1);
}

.success-message {
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    color: #2f855a;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #9ae6b4;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(47, 133, 90, 0.1);
}

form {
    margin-bottom: 30px;
    position: relative;
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: #2d3748;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    font-weight: 500;
}

input[type="text"]:focus, input[type="password"]:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.1);
    transform: translateY(-2px);
}

input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

button[type="submit"] {
    width: 100%;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: none;
    color: #1e3a8a;
    padding: 18px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
}

button[type="submit"]:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(251, 191, 36, 0.4);
}

button[type="submit"]:active {
    transform: translateY(-1px);
}

p {
    text-align: center;
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
}

p a {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

p a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: #fbbf24;
    transition: width 0.3s ease;
}

p a:hover::after {
    width: 100%;
}

p a:hover {
    color: #fbbf24;
}

.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #1e3a8a;
    font-weight: 700;
    margin-bottom: 10px;
    gap: 10px;
}

/* Cambiar el emoji y texto del logo */
.logo::before {
    content: '👁️';
    font-size: 2.2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Ocultar el texto original y mostrar el nuevo */
.logo {
    font-size: 0; /* Oculta el texto original */
}

.logo::after {
    content: 'OcularVoice';
    font-size: 1.8rem;
    color: #1e3a8a;
    font-weight: 700;
    margin-left: 10px;
}

/* Agregar subtítulo al logo */
.logo-section::after {
    content: 'Gestión de tareas accesible';
    display: block;
    color: #4a5568;
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 5px;
}

/* Tip sobre activación por voz */
.register-container::after {
    content: '🎤 Recuerda: Una vez registrado, solo di "Hablar" para activar el asistente de voz.';
    display: block;
    background: rgba(30, 58, 138, 0.1);
    border: 1px solid rgba(30, 58, 138, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    color: #1e3a8a;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
    font-weight: 500;
}

@media (max-width: 768px) {
    .register-container {
        padding: 40px 30px;
        margin: 10px;
        border-radius: 16px;
    }
    
    h1 {
        font-size: 1.8rem;
    }

    .logo::after {
        font-size: 1.5rem;
    }
    
    input[type="text"], input[type="password"] {
        padding: 14px 16px;
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    button[type="submit"] {
        padding: 16px;
        font-size: 1rem;
    }

    form::before,
    .register-container::after {
        padding: 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .register-container {
        padding: 30px 20px;
        margin: 5px;
    }
    
    h1 {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }

    .logo::after {
        font-size: 1.3rem;
    }

    .logo::before {
        font-size: 1.8rem;
    }
    
    input[type="text"], input[type="password"] {
        padding: 12px 14px;
        margin-bottom: 18px;
    }
    
    button[type="submit"] {
        padding: 14px;
        font-size: 0.95rem;
    }

    form::before,
    .register-container::after {
        padding: 12px;
        font-size: 0.85rem;
    }

    .logo-section::after {
        font-size: 0.85rem;
    }
}

/* Estilos para el botón de volver */
.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #1e3a8a;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: rgba(251, 191, 36, 0.2);
    transform: translateX(-3px);
}

/* Asegurarse de que el contenedor tenga posición relativa para el botón absoluto */
.login-container {
    position: relative;
}

/* Estilos responsivos */
@media (max-width: 480px) {
    .back-button {
        top: 15px;
        left: 15px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}