/* ========================================
   Login Page Styles
   ======================================== */

/* Reset y variables */
:root {
    --primary-color: #0d6efd;
    --primary-dark: #0a58ca;
    --primary-gradient: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
}

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

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Contenedor principal */
.login-page {
    min-height: 100vh;
    display: flex;
    background: white;
}

/* Sección izquierda - Info */
.login-left-section {
    flex: 1;
    background: var(--primary-gradient);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Elementos decorativos */
.login-left-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -150px;
    right: -150px;
}

.login-left-section::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
}

.login-left-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 400px;
}

.login-left-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

/* Animación flotante del icono */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.login-left-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.login-left-subtitle {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    font-weight: 300;
}

/* Características */
.login-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

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

.login-feature:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.login-feature-icon {
    font-size: 1.75rem;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    width: 50px;
    height: 50px;
}

.login-feature-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.login-feature-content p {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* Sección derecha - Formulario */
.login-right-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    animation: slideInRight 0.6s ease;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
}

.login-form-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.login-form-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.login-form-header p {
    color: #6c757d;
    font-size: 0.95rem;
}

/* Validación */
.validation-summary {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.validation-summary ul {
    margin: 0;
    padding-left: 1.5rem;
}

/* Form groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

/* Input wrapper para iconos */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-group input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: white;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
    background-color: white;
}

.form-group input::placeholder {
    color: #adb5bd;
}

.input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1rem;
    pointer-events: none;
    z-index: 10;
}

.validation-error {
    display: block;
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.4rem;
    font-weight: 500;
}

/* Checkbox y links */
.checkbox-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-check {
    display: flex;
    align-items: center;
    margin: 0;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    cursor: pointer;
    accent-color: var(--primary-color);
    border: 1.5px solid #e0e0e0;
    border-radius: 4px;
}

.form-check-label {
    margin: 0;
    cursor: pointer;
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
}

.forgot-password-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.forgot-password-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Botón de login */
.login-btn {
    width: 100%;
    padding: 0.95rem 1.5rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.2);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Footer */
.login-form-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9rem;
    color: #6c757d;
}

.login-form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-form-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Animación de entrada */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 991px) {
    .login-left-section {
        display: none;
    }

    .login-right-section {
        flex: 1;
        background: white;
    }

    .login-page {
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .login-left-section {
        padding: 2rem 1rem;
    }

    .login-right-section {
        padding: 2rem 1rem;
    }

    .login-form-container {
        max-width: 100%;
    }

    .login-left-title {
        font-size: 2rem;
    }

    .login-left-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .checkbox-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .form-group label {
        font-size: 0.8rem;
    }
}
