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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    height: 100vh;
    overflow-x: hidden;
    background: #ffffff;
    margin: 0;
    padding: 0;
}

.login-container {
    display: flex;
    min-height: 100vh;
    height: 100vh;
    position: relative;
    max-height: 100vh;
    overflow: hidden;
}

/* Lado izquierdo - Imagen */
.image-section {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, #1a3e1a 0%, #0d2818 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    z-index: 1;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    z-index: 2;
}

.overlay-content {
    max-width: 500px;
    z-index: 3;
}

.overlay-content h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.025em;
}

.overlay-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
    font-weight: 400;
}

.features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.feature i {
    font-size: 1.5rem;
    color: white;
}

.feature span {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    text-align: center;
}

/* Lado derecho - Formulario */
.form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 2rem;
    position: relative;
    min-height: 100vh;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top right, rgba(26, 62, 26, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.form-container {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    margin: auto;
}

.logo-section {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: #1a3e1a;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo i {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #1a3e1a 0%, #0d2818 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-text {
    text-align: center;
    margin-bottom: 2rem;
}

.welcome-text h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

.welcome-text p {
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 400;
}

.login-form {
    width: 100%;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: #1a3e1a;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    letter-spacing: -0.025em;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    color: #9ca3af;
    font-size: 1rem;
    z-index: 2;
}

.input-wrapper input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
    font-weight: 500;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #1a3e1a;
    background: white;
    box-shadow: 0 0 0 4px rgba(26, 62, 26, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.input-wrapper input::placeholder {
    color: #9ca3af;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: #1a3e1a;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #475569;
    font-weight: 500;
}

.remember-me input[type="checkbox"] {
    margin-right: 0.75rem;
    accent-color: #1a3e1a;
    width: 1.1rem;
    height: 1.1rem;
}

.forgot-password {
    color: #1a3e1a;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.forgot-password:hover {
    color: #0d2818;
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #1a3e1a 0%, #0d2818 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 14px rgba(26, 62, 26, 0.3);
    letter-spacing: -0.025em;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(26, 62, 26, 0.4);
    background: linear-gradient(135deg, #2d5a2d 0%, #1a3e1a 100%);
}

.login-btn:active {
    transform: translateY(0);
}

.footer-info {
    text-align: center;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
}

.footer-info p {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 400;
    margin: 0;
}

/* Estilos para alertas de error */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.alert ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.alert li {
    margin-bottom: 0.25rem;
}

.alert li:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .login-container {
        flex-direction: column;
        overflow-y: auto;
        max-height: none;
        height: auto;
        min-height: 100vh;
    }

    .image-section {
        min-height: 35vh;
        padding: 1.5rem;
    }

    .overlay-content h2 {
        font-size: 2rem;
    }

    .form-section {
        padding: 1.5rem;
        min-height: auto;
    }

    .form-container {
        padding: 1.5rem;
        max-width: 100%;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
        border-radius: 15px;
        margin: 1rem auto;
    }
}

@media (max-width: 768px) {
    .image-section {
        min-height: 300px;
        padding: 1rem;
    }

    .overlay-content {
        padding: 2rem;
    }

    .overlay-content h2 {
        font-size: 1.75rem;
    }

    .overlay-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .features {
        gap: 1rem;
    }

    .feature {
        padding: 0.75rem;
        min-width: 80px;
    }

    .feature i {
        font-size: 1.2rem;
    }

    .feature span {
        font-size: 0.8rem;
    }

    .form-container {
        padding: 1rem;
        max-width: 100%;
    }

    .welcome-text h1 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .form-section {
        padding: 1rem;
    }

    .overlay-content {
        padding: 1.5rem;
    }

    .overlay-content h2 {
        font-size: 1.5rem;
    }

    .welcome-text h1 {
        font-size: 1.5rem;
    }

    .input-wrapper input {
        padding: 0.75rem 1rem 0.75rem 2.5rem;
    }

    .login-btn {
        padding: 0.75rem 1rem;
    }
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



/* Estilos adicionales para el registro */
.form-divider {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.875rem;
}

.form-divider .link-primary {
    color: #1a3e1a;
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.5rem;
    transition: all 0.2s;
}

.form-divider .link-primary:hover {
    color: #0d2818;
    text-decoration: underline;
}
