/* ==========================================================
   MASTER.CSS - PREMIUM ENTERPRISE EDITION
   Design: Split Screen / Square Minimalist / Dark Mode Info
   ========================================================== */

/* 1. IMPORT MODERN FONT */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

/* 2. CORE RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8fafc; /* Color de fondo base */
}

/* 3. LAYOUT STRUCTURE */
.login-container {
    display: flex;
    flex: 1;
    min-height: 100vh;
}

.login-side-info {
    flex: 1.2;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 58, 138, 0.8) 100%), 
                url('../../images/almacen.jpg'); 
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px;
    color: #ffffff;
}

.login-side-info h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.login-side-info p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    font-weight: 300;
}

/* Right Panel: Form Area */
.login-side-form {
    flex: 0.8;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative; /* Contexto para el logo en la esquina */
}

/* 4. BRANDING ELEMENTS */
.form-corner-logo {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 160px;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.form-corner-logo:hover {
    opacity: 0.7;
}

/* 5. THE LOGIN BOX */
.login-box {
    width: 100%;
    max-width: 420px;
    animation: fadeIn 0.8s ease-out;
}

.login-box h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.subtitle {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* 6. FORM FIELDS (SQUARE & MODERN) */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.form-group input {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    color: #0f172a;
    background-color: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 6px; /* Borde sutilmente cuadrado */
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* 7. PRIMARY BUTTON */
button {
    width: 100%;
    padding: 18px;
    background-color: #0f172a;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

button:hover {
    background-color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 8. ERROR STATES */
.alert-error {
    background-color: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 16px;
    border-radius: 4px;
    color: #991b1b;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* 9. ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 10. RESPONSIVE DESIGN */
@media (max-width: 1100px) {
    .login-side-info {
        display: none;
    }
    .login-side-form {
        flex: 1;
        padding: 40px 24px;
    }
    .form-corner-logo {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 40px;
        align-self: flex-start;
    }
}