@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:wght@500&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    height: 100vh;
    background: url("/images/background_img.jpg") no-repeat center center;
    background-size: cover;
    position: relative;
}

/* Capa blanca difuminada */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(5px);
}

/* CONTENEDOR GENERAL */
.container_general {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
}

.login-card-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
}

.container_general_forms {
    width: 480px;
    background: rgba(255, 255, 255, 0.95);
    padding: 24px 36px;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container_general_forms:hover {
    box-shadow: 0 25px 55px rgba(15, 23, 42, 0.12);
}

/* LOGO */
.container_logo_forms {
    text-align: center;
    margin-bottom: 25px;
}

.logo_image {
    width: 180px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.02));
}

.title_forms {
    font-weight: 800;
    font-size: 26px;
    color: #1e293b;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.text-muted.text-18 {
    font-size: 0.88rem;
    color: #64748b !important;
    font-weight: 500;
    margin-bottom: 25px;
}

.text-muted.text-18 u {
    color: #3b7ddd;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid rgba(59, 125, 221, 0.25);
    padding-bottom: 1px;
    transition: all 0.25s ease;
}

.text-muted.text-18 u:hover {
    color: #1c52a3;
    border-color: #1c52a3;
}

/* INPUTS STYLING */
.form-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    display: inline-block;
}

.input-group {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.25s ease;
    overflow: hidden;
    margin-bottom: 20px;
}

.input-group:hover {
    border-color: #cbd5e1;
}

.input-group:focus-within {
    border-color: #3b7ddd;
    box-shadow: 0 0 0 4px rgba(59, 125, 221, 0.12);
    background: #ffffff;
}

.input-group-text {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding-left: 16px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.25s ease;
}

.input-group:focus-within .input-group-text {
    color: #3b7ddd;
}

.form-control {
    border: none !important;
    background: transparent !important;
    padding: 12px 14px !important;
    font-size: 0.92rem;
    font-weight: 500;
    color: #334155;
    font-family: "Montserrat", sans-serif;
    box-shadow: none !important;
}

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

/* PASSWORD TOGGLE BUTTON */
#togglePassword {
    background: transparent !important;
    border: none !important;
    color: #94a3b8;
    padding-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: color 0.25s ease;
    box-shadow: none !important;
    transform: none !important;
}

#togglePassword:hover {
    color: #3b7ddd;
}

#capsWarning {
    display: inline-block;
    margin-top: -12px;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 0.78rem;
    color: #dc3545;
}

/* ERRORES Y ALERTAS */
.alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    color: #991b1b;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 15px;
}

/* LINK RECUPERAR */
.text-primary {
    color: #3b7ddd !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.25s ease;
}

.text-primary:hover {
    color: #1c52a3 !important;
    text-decoration: none;
    border-bottom: 1px solid #1c52a3;
}

/* BOTON DE ACCION */
#loginButton {
    background: linear-gradient(135deg, #3b7ddd 0%, #1c52a3 100%);
    border: none;
    color: #ffffff;
    font-weight: 700;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(59, 125, 221, 0.25);
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

#loginButton:hover {
    background: linear-gradient(135deg, #4b8ded 0%, #2c62b3 100%);
    box-shadow: 0 6px 20px rgba(59, 125, 221, 0.4);
    transform: translateY(-1px);
}

#loginButton:active {
    transform: translateY(1px);
}

/* FOOTER DEL LOGIN (TRANSPARENTE) */
.login-footer {
    width: 100%;
    background: transparent;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #475569;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    z-index: 3;
    letter-spacing: 0.5px;
}

.login-footer div:last-child {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.8px;
    color: #64748b;
}

/* RESPONSIVE */
@media (max-width: 576px) {
    .container_general_forms {
        width: 100%;
        max-width: 380px;
        padding: 30px 20px;
    }
    
    .login-footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 20px;
    }
}

/* ==========================================================================
   DOUBLE COLUMN PREMIUM SPLIT-PANEL CARD (LOGIN / CONTRATAR SERVICIO)
   ========================================================================== */

.login-card-container {
    width: 850px;
    height: 520px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    display: flex;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* Left Brand Panel */
.info-panel {
    width: 35%;
    background: linear-gradient(135deg, #990000 0%, #630000 100%);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    text-align: center;
    position: relative;
    z-index: 5;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-panel-content {
    animation: fadeInScale 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Right Form Slider Container */
.form-panel {
    width: 65%;
    padding: 20px 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 4;
}

.forms-slider-container {
    width: 100%;
    overflow: hidden;
}

.forms-slider {
    display: flex;
    width: 200%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-section {
    width: 50%;
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 0 10px;
}

/* Responsive design for split panel */
@media (max-width: 860px) {
    .login-card-container {
        width: 100%;
        max-width: 440px;
        height: auto;
        flex-direction: column;
        border-radius: 20px;
    }
    .info-panel {
        width: 100%;
        padding: 30px 20px;
    }
    .form-panel {
        width: 100%;
        padding: 30px 20px;
    }
}

/* Responsive adjust for textarea */
textarea.form-control:focus {
    outline: none !important;
    border: none !important;
}


