
/* RESET Y ESTILOS BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a5f1a 0%, #2d8b2d 50%, #3cb371 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* EFECTO DE CANCHA DE FÚTBOL EN EL FONDO */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 49%, white 49%, white 51%, transparent 51%),
        linear-gradient(transparent 49%, white 49%, white 51%, transparent 51%),
        radial-gradient(circle at 50% 50%, transparent 70%, white 70%, white 72%, transparent 72%);
    opacity: 0.1;
    pointer-events: none;
}

/* CONTENEDOR PRINCIPAL */
.login-container {
    display: flex;
    max-width: 1100px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    min-height: 650px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

/* LADO IZQUIERDO - TEMÁTICA DEPORTIVA */
.login-left {
    flex: 1.2;
    background: linear-gradient(135deg, #1e7c1e 0%, #2a9d2a 50%, #36b336 100%);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* PATRÓN DE GRASS SINTÉTICO */
.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(255,255,255,0.1) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(255,255,255,0.1) 50%, transparent 52%);
    background-size: 30px 30px;
    animation: grassShift 20s infinite linear;
}

@keyframes grassShift {
    0% { background-position: 0 0; }
    100% { background-position: 30px 30px; }
}

/* LÍNEAS DE CANCHA FLOTANTES */
.soccer-field {
    position: absolute;
    width: 80%;
    height: 60%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    animation: floatField 8s ease-in-out infinite;
}

.soccer-field::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 0;
    border-top: 3px solid rgba(255, 255, 255, 0.3);
}

.soccer-field::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: 30%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

@keyframes floatField {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

.logo {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounceBall 3s infinite;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
    position: relative;
    z-index: 2;
}

@keyframes bounceBall {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    25% { 
        transform: translateY(-15px) rotate(90deg); 
    }
    50% { 
        transform: translateY(0) rotate(180deg); 
    }
    75% { 
        transform: translateY(-10px) rotate(270deg); 
    }
}

.welcome-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
    position: relative;
    z-index: 2;
    background: linear-gradient(45deg, #ffffff, #e8f5e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 40px;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    font-weight: 500;
}

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 18px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.feature-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* LADO DERECHO - FORMULARIO */
.login-right {
    flex: 1;
    padding: 70px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.98);
    position: relative;
}

.login-header {
    text-align: center;
    margin-bottom: 50px;
}

.login-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a5f1a;
    margin-bottom: 15px;
    position: relative;
}

.login-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #1a5f1a, #3cb371);
    border-radius: 2px;
}

.login-subtitle {
    color: #4a7c4a;
    font-size: 1.1rem;
    font-weight: 500;
}

/* FORMULARIO */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.form-label {
    font-weight: 600;
    color: #2d5a2d;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-input {
    padding: 18px 25px;
    border: 2px solid #e8f5e8;
    border-radius: 15px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: #f8fff8;
    color: #2d5a2d;
    font-weight: 500;
}

.form-input:focus {
    outline: none;
    border-color: #2a9d2a;
    background: white;
    box-shadow: 
        0 0 0 3px rgba(42, 157, 42, 0.1),
        0 5px 15px rgba(42, 157, 42, 0.1);
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: #88bb88;
    font-weight: 400;
}

/* BOTÓN CON TEMÁTICA DEPORTIVA */
.btn-login {
    background: linear-gradient(135deg, #2a9d2a 0%, #1e7c1e 100%);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 25px rgba(42, 157, 42, 0.4),
        0 0 0 1px rgba(255,255,255,0.1);
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:active {
    transform: translateY(-1px);
}

/* MENSAJES DE ERROR */
.error-message {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 1rem;
    margin-bottom: 25px;
    animation: errorShake 0.5s ease-in-out;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
}

.error-message::before {
    content: '⚽';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* EXTRAS */
.login-footer {
    text-align: center;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 2px solid #e8f5e8;
}

.footer-text {
    color: #7aa87a;
    font-size: 0.9rem;
    font-weight: 500;
}

/* LOADING */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '⚽';
    position: absolute;
    width: 24px;
    height: 24px;
    top: 50%;
    left: 50%;
    margin-left: -12px;
    margin-top: -12px;
    animation: spinBall 1s ease-in-out infinite;
    font-size: 1.5rem;
}

@keyframes spinBall {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

/* RESPONSIVE */
@media (max-width: 968px) {
    .login-container {
        flex-direction: column;
        max-width: 500px;
    }

    .login-left {
        padding: 40px 30px;
        min-height: 300px;
    }

    .login-right {
        padding: 50px 40px;
    }

    .welcome-title {
        font-size: 2.2rem;
    }

    .login-title {
        font-size: 2rem;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .login-left,
    .login-right {
        padding: 30px 25px;
    }

    .welcome-title {
        font-size: 1.8rem;
    }

    .login-title {
        font-size: 1.6rem;
    }

    .form-input {
        padding: 15px 20px;
    }
}

/* PARTÍCULAS DE HIERBA */
.grass-particle {
    position: absolute;
    background: linear-gradient(45deg, #2a9d2a, #36b336);
    width: 3px;
    height: 15px;
    border-radius: 2px;
    animation: grassGrow 4s ease-out infinite;
    opacity: 0;
}

@keyframes grassGrow {
    0% { 
        transform: translateY(20px) rotate(0deg); 
        opacity: 0; 
        height: 0px;
    }
    20% { 
        opacity: 1; 
        height: 15px;
    }
    80% { 
        opacity: 1; 
        height: 15px;
    }
    100% { 
        transform: translateY(-10px) rotate(10deg); 
        opacity: 0; 
        height: 0px;
    }
}  

.welcome-logo {
    width: 140px;        /* ajusta según tu diseño */
    max-width: 100%;
    margin-bottom: 2px;
    display: block;
    margin: 0 auto;
}
