@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    height: 100vh;
    overflow: hidden;
    color: #334155;
}

/* Container */
.login-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Left Side - Form */
.login-form-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: #ffffff;
    position: relative;
    z-index: 10;
    box-shadow: 10px 0 30px rgba(0,0,0,0.03);
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 1rem;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #15803d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-header {
    margin-bottom: 2.5rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.page-subtitle {
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.5;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
}

.input-wrapper {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 1rem 1rem 1rem 2.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 1rem;
    color: #334155;
    background-color: #f8fafc;
    transition: all 0.2s ease-in-out;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #15803d;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.1);
}

.form-control::placeholder {
    color: #94a3b8;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #cbd5e1;
    font-size: 1.1rem;
    transition: color 0.2s;
    pointer-events: none;
}

.form-control:focus + .input-icon {
    color: #15803d;
}

/* Button */
.btn-submit {
    width: 100%;
    padding: 1.1rem;
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    color: white;
    font-weight: 600;
    font-size: 1.05rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(21, 128, 61, 0.2);
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(21, 128, 61, 0.3);
    filter: brightness(110%);
}

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

/* Footer & Extras */
.copyright {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: center;
}

/* Messages */
#mensaje_comprobacion {
    margin-top: 1.5rem;
    min-height: 20px;
} 

/* Right Side - Image */
.login-image-side {
    flex: 1.4;
    background-image: url('../images/banner_inicio.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top right, rgba(21, 128, 61, 0.92), rgba(15, 23, 42, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10%;
    color: white;
}

.hero-text {
    max-width: 600px;
    animation: fadeIn 1s ease-out 0.3s backwards;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.85;
    font-weight: 300;
}

/* Spinner Customization */
.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 0.2em;
}

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 1024px) {
    .login-image-side {
        display: none;
    }
    
    .login-form-side {
        background-color: #f1f5f9;
        position: relative;
    }
    
    .login-form-side::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 300px;
        background: linear-gradient(135deg, #15803d 0%, #166534 100%);
        z-index: 0;
    }
    
    .login-wrapper {
        background: white;
        padding: 3rem;
        border-radius: 1.5rem;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        z-index: 1;
    }
    
    .brand-text {
        color: white;
        margin-bottom: 2rem;
        text-align: center;
        width: 100%;
    }
    
    .brand-logo {
        position: absolute;
        top: 2rem;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
    }
}

@media (max-width: 480px) {
    .login-wrapper {
        padding: 2rem;
        box-shadow: none;
        background: transparent;
    }
    
    .login-form-side {
        background: white;
    }
    
    .login-form-side::before {
        display: none;
    }
    
    .brand-logo {
        position: static;
        transform: none;
        margin-bottom: 1rem;
    }
    
    .brand-text {
        color: #15803d;
    }
    
    .page-title {
        font-size: 2rem;
    }
}
