/* assets/css/login.css - VERSIÓN PANTALLA COMPLETA */

:root {
    --primary: linear-gradient(135deg, #d62828 0%, #f77f00 100%);
    --primary-solid: #d62828;
    --primary-dark: #c1121f;
    --accent: #f77f00;
    --background: #fdf6e3;
    --surface: #ffffff;
    --text: #2c3e50;
    --text-muted: #6c757d;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 30px 80px rgba(0, 0, 0, 0.15);
    --font-display: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background: var(--background);
    min-height: 100vh;
    overflow-x: hidden;
}

.container-fluid {
    padding: 0 !important;
    margin: 0;
    min-height: 100vh;
}

.row.h-100 {
    margin: 0;
    min-height: 100vh;
}

/* Columna de branding - pantalla completa */
#branding-column {
    background: linear-gradient(135deg, rgba(214, 40, 40, 0.9), rgba(247, 127, 0, 0.7)),
                url('https://images.unsplash.com/photo-1707451564615-2a3a0af3a1b7?q=80&w=1170&auto=format&fit=crop') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

#branding-column::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.03) 10px,
        rgba(255, 255, 255, 0.03) 20px
    );
    animation: float 20s linear infinite;
}

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

.branding-content {
    position: relative;
    z-index: 2;
    color: white;
}

.branding-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
    line-height: 1.1;
}

.branding-content p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 300;
    opacity: 0.95;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
    opacity: 0.9;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

/* Formulario - pantalla completa */
#form-column {
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0;
}

.login-card {
    width: 100%;
    max-width: 450px;
    padding: 60px 50px;
}

/* Header del login */
.text-center.mb-4 {
    margin-bottom: 40px !important;
}

.login-card h2 {
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.login-card .text-muted {
    color: var(--text-muted) !important;
    font-size: 1.1rem;
    font-weight: 400;
}

/* Campos de formulario modernos */
.input-group {
    margin-bottom: 25px;
    position: relative;
}

.input-group-text {
    background: rgba(214, 40, 40, 0.05);
    border: 2px solid rgba(214, 40, 40, 0.1);
    border-right: none;
    border-radius: 15px 0 0 15px;
    color: var(--primary-solid);
    font-size: 1.2rem;
    padding: 20px 18px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.form-control-lg {
    background: rgba(214, 40, 40, 0.02);
    border: 2px solid rgba(214, 40, 40, 0.1);
    border-left: none;
    border-radius: 0 15px 15px 0;
    padding: 20px;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
    border-color: var(--primary-solid);
    box-shadow: 0 0 0 0.25rem rgba(214, 40, 40, 0.15), 0 10px 25px rgba(0, 0, 0, 0.1);
    background: white;
}

.input-group:focus-within .input-group-text {
    border-color: var(--primary-solid);
    background: rgba(214, 40, 40, 0.1);
}

/* Checkbox moderno */
.d-flex.justify-content-between.align-items-center.mb-4 {
    margin-bottom: 35px !important;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-check-input {
    width: 22px;
    height: 22px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    appearance: none;
    transition: all 0.3s ease;
    margin: 0;
}

.form-check-input:checked {
    background: var(--primary-solid);
    border-color: var(--primary-solid);
}

.form-check-input:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-check-label {
    color: var(--text-muted) !important;
    font-weight: 500;
    cursor: pointer;
    font-size: 1rem;
}

/* Botón principal */
.btn-primary {
    background: var(--primary);
    border: none;
    border-radius: 15px;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(214, 40, 40, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::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.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--primary);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(214, 40, 40, 0.4);
}

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

.btn-primary:focus {
    background: var(--primary);
    border-color: transparent;
    box-shadow: 0 0 0 0.25rem rgba(214, 40, 40, 0.25);
}

/* Alertas mejoradas */
.alert {
    border: none;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 25px;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.alert-danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
}

.alert-warning {
    background: linear-gradient(135deg, #feca57, #ff9ff3);
    color: white;
    border: none;
}

/* Efectos de hover en inputs */
.input-group:hover .input-group-text,
.input-group:hover .form-control {
    border-color: rgba(214, 40, 40, 0.25);
}

/* Loading animation para el botón */
.btn-primary.loading {
    position: relative;
    color: transparent;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    top: 50%;
    left: 50%;
    margin-left: -11px;
    margin-top: -11px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer del login */
.text-center.mt-4 {
    margin-top: 30px !important;
}

.text-center.mt-4 small {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Responsive mejorado */
@media (max-width: 992px) {
    #branding-column {
        min-height: 40vh;
        padding: 40px 30px;
    }
    
    #form-column {
        min-height: 60vh;
    }

    .login-card {
        padding: 40px 35px;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    #branding-column {
        min-height: 35vh;
        padding: 30px 25px;
    }
    
    #form-column {
        min-height: 65vh;
    }
    
    .login-card {
        padding: 35px 30px;
    }
    
    .branding-content h1 {
        font-size: 2.2rem;
    }
    
    .login-card h2 {
        font-size: 1.8rem;
    }

    .input-group-text,
    .form-control-lg {
        padding: 16px;
        font-size: 1rem;
    }

    .btn-primary {
        padding: 18px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .login-card {
        padding: 25px 20px;
    }

    .branding-content h1 {
        font-size: 2rem;
    }

    .input-group-text,
    .form-control-lg {
        padding: 14px;
        font-size: 0.95rem;
    }
}

/* Mejorar la visibilidad en dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
    .btn-primary:hover {
        transform: none;
    }
    
    .input-group:hover .input-group-text,
    .input-group:hover .form-control {
        border-color: rgba(214, 40, 40, 0.1);
    }
}

/* Animaciones de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.branding-content {
    animation: slideInRight 0.8s ease-out;
}

.login-card {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Validación visual */
.form-control.is-valid {
    border-color: #28a745;
    background-image: none;
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: none;
}