/* =========================================
   🌐 CONFIGURACIÓN GENERAL
========================================= */
body {
    height: 100vh;
    background: #f4f6f9;
    font-family: 'Source Sans Pro', sans-serif;
}

/* =========================================
   🎨 VARIABLES DE COLOR (THEME)
========================================= */
:root {
    --color-primary: #9D2448;
    --color-primary-dark: #7A1C38;
    --color-border: #9D2448;
    --color-text: #333;
    --color-placeholder: #9e9e9e;
}

.text-theme
{
    color: #9D2448 !important;
}

/* =========================================
   📦 CONTENEDOR GENERAL
========================================= */
.login-container {
    min-height: 100vh;
}

/* =========================================
   📏 WRAPPER (ANCHO CONTROLADO)
========================================= */
.login-wrapper {
    width: 100%;
    max-width: 950px;
}

/* =========================================
   🧾 CARD
========================================= */
.login-card {
    border-radius: 16px;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* =========================================
   🔵 PANEL IZQUIERDO
========================================= */
.login-left {
    background: linear-gradient(135deg, #9D2448, #7A1C38);
    padding: 3rem;
    text-align: center;
}

/* =========================================
   🔴 LOGOS
========================================= */

/* Logo escritorio */
.login-logo-top img {
    max-width: 320px;
    width: 100%;
}

/* Logo mobile */
.login-logo-mobile {
    animation: fadeIn 0.5s ease-in-out;
}

.login-logo-mobile img {
    max-width: 220px;
    width: 100%;
}

/* Contenedor blanco del logo */
.div-img-semabieso {
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Animación */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   📝 TITULOS
========================================= */
.login-title {
    font-weight: 600;
    font-size: 26px;
    color: var(--color-primary);
}

.login-subtitle {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 20px;
}

/* =========================================
   📦 GRUPO DE INPUT
========================================= */
.custom-group {
    position: relative;
    margin-bottom: 18px;
}

/* =========================================
   🏷️ LABEL FLOTANTE
========================================= */
.custom-group label {
    position: absolute;
    top: -9px;
    left: 18px;
    background: #fff;
    padding: 0 8px;
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 600;
    z-index: 2;
}

/* =========================================
   ✏️ INPUT ESTILO
========================================= */
.custom-input {
    width: 100%;
    height: 46px;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    padding: 0 40px 0 14px;
    font-size: 15px;
    color: var(--color-text);
    outline: none;
    background: #ffffff;
    transition: all 0.2s ease;
}

/* Placeholder */
.custom-input::placeholder {
    color: var(--color-placeholder);
    font-size: 14px;
    opacity: 0.7;
}

/* Focus */
.custom-input:focus {
    border-color: var(--color-primary-dark);
    box-shadow: 0 0 0 3px rgba(157, 36, 72, 0.15);
    transform: scale(1.01);
}

/* =========================================
   👁️ ICONO PASSWORD
========================================= */
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    cursor: pointer;
    color: #888;
}

.toggle-password:hover {
    color: var(--color-primary);
}

/* =========================================
   🔘 BOTÓN ESTILO PÍLDORA
========================================= */
.custom-btn {
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    height: 48px;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.25s ease, transform 0.1s ease;
}

/* Hover / Focus / Active */
.custom-btn:hover,
.custom-btn:focus,
.custom-btn:active {
    background: var(--color-primary-dark);
    color: #ffffff;
}

/* Click */
.custom-btn:active {
    transform: scale(0.98);
}

/* =========================================
   🔗 LINK RECUPERAR
========================================= */
.link-recuperar {
    font-size: 0.9rem;
    color: #6B7280;
}

.link-recuperar:hover {
    color: var(--color-primary);
    text-decoration: none;
}

/* =========================================
   📌 FOOTER
========================================= */
.footer-text {
    color: #9aa0a6;
}

/* =========================================
   📐 ESPACIADO INTERNO
========================================= */
.card-body {
    padding: 2rem 2.5rem;
}

/* Evita espacios extra al final */
.card-body > *:last-child {
    margin-bottom: 0;
}

/* =========================================
   📱 RESPONSIVE
========================================= */
@media (max-width: 768px) {

    /* Padding general */
    .card-body {
        padding: 1.5rem 1.2rem;
    }

    /* Inputs */
    .custom-input {
        height: 44px;
        font-size: 14px;
    }

    /* Botón */
    .custom-btn {
        height: 44px;
        font-size: 15px;
        border-radius: 20px;
    }

    /* Espaciado */
    .custom-group {
        margin-bottom: 14px;
    }

    /* Tipografía */
    .login-title {
        font-size: 22px;
    }

    .login-subtitle {
        font-size: 13px;
    }

    /* Ocultar panel izquierdo */
    .login-left {
        display: none;
    }

    /* Full width */
    .login-wrapper {
        max-width: 100%;
    }
}