/* ==========================================================================
   LABSAG CLOUD - FLAT ESTANDARIZADO (Coherente con labsag.co.uk & Landings)
   ========================================================================== */

:root {
    --brand-blue: #0067CE;
    --brand-blue-dark: #004da3;
    --brand-blue-light: #e6f0fa;
    --brand-navy: #1f2937;
    --brand-red: #d9534f;
    --brand-red-hover: #c9302c;
    --brand-orange: #F86F05;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --bg-light: #f4f6f9;
    --card-border: #e2e8f0;
    --radius: 6px;
    --radius-lg: 8px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: Roboto, "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-dark);
    text-align: left;
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --------------------------------------------------------------------------
   Top Navbar (Estandarizado con el Header de LABSAG)
   -------------------------------------------------------------------------- */
.navbar-top {
    background-color: #ffffff;
    border-bottom: 2px solid var(--brand-blue);
    padding: 10px 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.navbar-container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo img {
    height: 48px;
    vertical-align: middle;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-aviso {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-aviso:hover {
    background-color: #ffe8a1;
    color: #533f03;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

.lang-switch a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
}

.lang-switch a:hover {
    color: var(--brand-blue);
    background: var(--brand-blue-light);
}

.lang-switch a.active {
    background: var(--brand-blue);
    color: #ffffff;
    font-weight: bold;
}

.lang-switch img {
    width: 16px;
    height: 11px;
}

/* --------------------------------------------------------------------------
   Hero Section & Login Container
   -------------------------------------------------------------------------- */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 16px;
    background: linear-gradient(180deg, rgba(0, 103, 206, 0.04) 0%, rgba(244, 246, 249, 1) 100%);
}

.card-login-standard {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 460px;
    overflow: hidden;
}

/* Card Header */
.card-header-standard {
    background-color: #ffffff;
    padding: 24px 24px 16px 24px;
    text-align: center;
    border-bottom: 1px solid #edf2f7;
}

.badge-version {
    display: inline-block;
    background-color: var(--brand-blue-light);
    color: var(--brand-blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 8px;
}

.card-header-standard h2 {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--brand-blue);
    margin: 0 0 4px 0;
}

.card-header-standard .subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Role Tabs (Estandarizado con la estética de tabs planas)
   -------------------------------------------------------------------------- */
.standard-tabs {
    display: flex;
    background-color: #edf2f7;
    border-bottom: 1px solid var(--card-border);
}

.standard-tab {
    flex: 1;
    text-align: center;
    padding: 12px 6px;
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

.standard-tab:hover {
    color: var(--brand-blue);
    background-color: #e2e8f0;
}

.standard-tab.active {
    color: var(--brand-blue);
    background-color: #ffffff;
    border-bottom: 3px solid var(--brand-blue);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Card Body & Form Inputs
   -------------------------------------------------------------------------- */
.card-body-standard {
    padding: 28px 24px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.panel-heading {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-heading i {
    color: var(--brand-blue);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 6px;
}

.input-icon-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-group i {
    position: absolute;
    left: 12px;
    color: #a0aec0;
    font-size: 14px;
}

.input-icon-group input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-dark);
    background-color: #ffffff;
    border: 1px solid #cbd5e0;
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.input-icon-group input:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(0, 103, 206, 0.15);
}

/* --------------------------------------------------------------------------
   Button Estandarizado (El botón rojo de la Landing de la Universidad)
   -------------------------------------------------------------------------- */
.btn-ingresar {
    width: 100%;
    background-color: var(--brand-red);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, transform 0.1s ease;
    margin-top: 8px;
    box-shadow: 0 2px 4px rgba(217, 83, 79, 0.25);
}

.btn-ingresar:hover {
    background-color: var(--brand-red-hover);
    box-shadow: 0 4px 8px rgba(217, 83, 79, 0.35);
}

.btn-ingresar:active {
    transform: translateY(1px);
}

/* --------------------------------------------------------------------------
   Card Footer (Copyright & Version)
   -------------------------------------------------------------------------- */
.card-footer-standard {
    background-color: #f8fafc;
    border-top: 1px solid #edf2f7;
    padding: 14px 24px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Footer Oficial con Banderas Internacionales (Idéntico a Landing)
   -------------------------------------------------------------------------- */
.footer-standard {
    background-color: #ffffff;
    border-top: 1px solid var(--card-border);
    padding: 24px 16px;
    text-align: center;
}

.footer-countries {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    font-size: 12px;
    color: #4a5568;
}

.country-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.country-item img {
    height: 14px;
    width: 20px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Modal para el Reto
   -------------------------------------------------------------------------- */
.modal-standard {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-standard.open {
    display: flex;
}

.modal-dialog-standard {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 480px;
    padding: 24px;
}

.modal-header-standard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.modal-header-standard h3 {
    font-size: 1.1rem;
    color: var(--brand-blue);
    margin: 0;
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
}

.close-btn:hover {
    color: var(--text-dark);
}

.modal-body-standard {
    font-size: 13px;
    line-height: 1.6;
    color: #4a5568;
}

.btn-reto-link {
    display: inline-block;
    margin-top: 14px;
    background-color: #008CBA;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
}

.btn-reto-link:hover {
    background-color: #007095;
}

/* --------------------------------------------------------------------------
   Responsive Layout
   -------------------------------------------------------------------------- */
@media (max-width: 576px) {
    .navbar-top {
        padding: 10px 16px;
    }
    .navbar-container {
        flex-direction: column;
        gap: 8px;
    }
    .card-login-standard {
        box-shadow: none;
        border: 1px solid #cbd5e0;
    }
    .standard-tab {
        font-size: 12px;
        padding: 10px 4px;
    }
    .standard-tab i {
        display: none;
    }
    .footer-countries {
        gap: 12px;
    }
}

