:root {
    --azul: #1F3C88;
    --azul-claro: #2A5298;
    --azul-oscuro: #14285E;
    --verde: #A3D55B;
    --verde-neon: #b6f781;
    --verde-exito: #4CAF50;
    --gris: #F4F4F4;
    --gris-claro: #e8e4db;
    --negro: #1A1A1A;
    --blanco: #FFFFFF;
    --font-main: 'Open Sans', 'Inter', sans-serif;
}

/* Fondo animado con ondas fluidas */
body {
    font-family: var(--font-main);
    color: var(--negro);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    background-color: var(--azul-oscuro);
}

.wave-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.wave {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><linearGradient id="waveGradient" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="%2314285E" stop-opacity="0.8"/><stop offset="100%" stop-color="%231F3C88" stop-opacity="0.9"/></linearGradient><filter id="blur"><feGaussianBlur stdDeviation="2"/></filter></defs><path d="M0,400 Q300,300 600,500 T1200,300 L1200,800 L0,800 Z" fill="url(%23waveGradient)" filter="url(%23blur)"/><path d="M0,500 Q300,400 600,600 T1200,400 L1200,800 L0,800 Z" fill="url(%23waveGradient)" opacity="0.7" filter="url(%23blur)"/><path d="M0,300 Q300,200 600,400 T1200,200 L1200,800 L0,800 Z" fill="url(%23waveGradient)" opacity="0.5" filter="url(%23blur)"/></svg>');
    background-size: cover;
    animation: waveMove 20s linear infinite;
}

.wave:nth-child(2) {
    animation-delay: -5s;
}

.wave:nth-child(3) {
    animation-delay: -10s;
    opacity: 0.7;
}

.shine {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(163, 213, 91, 0.3) 0%, rgba(163, 213, 91, 0) 70%);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    animation: shineMove 30s linear infinite;
    opacity: 0.5;
    filter: blur(50px);
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    background: rgba(163, 213, 91, 0.6);
    border-radius: 50%;
    animation: float linear infinite;
}

@keyframes waveMove {
    0% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-10px) translateX(20px); }
    50% { transform: translateY(0) translateX(-10px); }
    75% { transform: translateY(10px) translateX(15px); }
    100% { transform: translateY(0) translateX(0); }
}

@keyframes shineMove {
    0% { transform: translate(0, 0); }
    25% { transform: translate(500px, 300px); }
    50% { transform: translate(1000px, 100px); }
    75% { transform: translate(300px, 600px); }
    100% { transform: translate(0, 0); }
}

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

/* Contenedor principal */
.main-container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Tarjeta de autenticación */
.auth-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.logo-container {
    margin-bottom: 20px;
    text-align: center;
}

.logo-img {
    width: 180px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.auth-card h2 {
    color: var(--azul);
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--azul);
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: var(--verde);
    outline: none;
    box-shadow: 0 0 0 3px rgba(163, 213, 91, 0.2);
}

.forgot-password {
    text-align: right;
    margin-bottom: 20px;
}

.forgot-password a {
    color: var(--azul);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: var(--verde);
}

.btn-primary {
    background: var(--verde);
    color: var(--negro);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: #b6e786;
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.1);
}

.link-text {
    margin-top: 20px;
    color: #666;
}

.link-text a {
    color: var(--azul);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.link-text a:hover {
    color: var(--verde);
}

/* Tarjeta de éxito */
.success-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--verde-exito);
    color: white;
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.success-card.active {
    opacity: 1;
    visibility: visible;
}

.success-card h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

.success-card p {
    margin-bottom: 20px;
    line-height: 1.5;
}

.success-card .btn-ok {
    background: white;
    color: var(--verde-exito);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.success-card .btn-ok:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .auth-card {
        padding: 30px 20px;
        margin: 20px;
    }
}
