/* ============================================================
   LOGIN ESTUDIANTES — Estilos modernos
   DEGT - UNAH | v2.0
   Ruta: Content/css/login.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

/* ── Contenedor principal ─────────────────────────────────── */
.login-wrapper {
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
    margin: 0 -15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

/* ── Tarjeta de login ─────────────────────────────────────── */
.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14);
    overflow: hidden;
    display: flex;
    flex-direction: row;
}

/* ══════════════════════════════════════════════════════════
   PANEL IZQUIERDO
══════════════════════════════════════════════════════════ */
.login-visual {
    background: linear-gradient(160deg, #3a72bb 0%, #2558a1 50%, #1e4d94 100%);
    padding: 50px 36px;
    flex: 0 0 42%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

    /* Círculos decorativos de fondo */
    .login-visual::before {
        content: '';
        position: absolute;
        top: -50px;
        right: -50px;
        width: 180px;
        height: 180px;
        border-radius: 50%;
        background: rgba(255,255,255,.04);
    }

    .login-visual::after {
        content: '';
        position: absolute;
        bottom: -60px;
        left: -40px;
        width: 200px;
        height: 200px;
        border-radius: 50%;
        background: rgba(0,0,0,.06);
    }

/* Logo circular dorado */
.unah-logo {
    width: 120px;
    height: 120px;
    background: #F5A623;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

    .unah-logo svg {
        width: 68px;
        height: 68px;
    }

/* Nombre y subtítulo */
.welcome-text {
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

    .welcome-text h2 {
        font-family: 'Outfit', 'Segoe UI', sans-serif;
        font-size: 28px;
        font-weight: 800;
        color: white;
        margin-bottom: 8px;
        letter-spacing: .5px;
    }

    .welcome-text p {
        font-size: 11px;
        font-weight: 600;
        color: rgba(255,255,255,.65);
        text-transform: uppercase;
        letter-spacing: 1px;
        line-height: 1.6;
    }

/* Divisor */
.visual-divider {
    width: 36px;
    height: 2px;
    background: rgba(255,255,255,.2);
    border-radius: 2px;
    margin: 20px auto;
    position: relative;
    z-index: 1;
}

/* Hashtag badge */
.visual-hashtag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(245,166,35,.15);
    border: 1px solid rgba(245,166,35,.3);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 700;
    color: #F5A623;
    letter-spacing: .3px;
    position: relative;
    z-index: 1;
    font-style: italic;
}

/* Eslogan */
.visual-eslogan {
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    line-height: 1.3;
    position: relative;
    z-index: 1;
    margin-top: 14px;
}

    .visual-eslogan em {
        color: #F5A623;
        font-style: normal;
    }

/* Subtexto */
.visual-sub {
    font-size: 11px;
    color: rgba(255,255,255,.4);
    text-align: center;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    max-width: 190px;
    margin: 10px auto 0;
}

/* ══════════════════════════════════════════════════════════
   PANEL DERECHO — FORMULARIO
══════════════════════════════════════════════════════════ */
.login-form-section {
    padding: 44px 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Eyebrow tag */
.form-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #EBF2FF;
    color: #003A7D;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 14px;
    width: fit-content;
}

.eyebrow-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #F5A623;
    flex-shrink: 0;
    display: inline-block;
}

/* Header del form */
.login-header {
    margin-bottom: 24px;
}

    .login-header h3 {
        color: #003d7a;
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 6px;
        font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    }

    .login-header p {
        color: #6b7c93;
        font-size: 13px;
        line-height: 1.5;
    }

/* ── Grupos de formulario ─────────────────────────────────── */
.modern-form-group {
    margin-bottom: 20px;
    position: relative;
}

    .modern-form-group label {
        display: block;
        color: #003d7a;
        font-weight: 600;
        margin-bottom: 8px;
        font-size: 13px;
    }

.input-icon-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #7a9bb5;
    pointer-events: none;
}

/* ── Input — respeta colores actuales ─────────────────────── */
.modern-input {
    width: 100%;
    padding: 12px 44px;
    border: 1.5px solid #d0dbe8;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    color: #1a3a6b;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
    box-sizing: border-box;
}

    .modern-input::placeholder {
        color: #aab8c8;
    }

    .modern-input:focus {
        outline: none;
        border-color: #2c7ab8;
        box-shadow: 0 0 0 3px rgba(44, 122, 184, .1);
    }

/* ── Botón principal ──────────────────────────────────────── */
.modern-btn {
    width: 100%;
    padding: 13px;
    background: var(--unah-blue-dark);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
    margin-top: 6px;
}

    .modern-btn:hover {
        background: #155499;
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(26, 95, 170, .28);
    }

    .modern-btn:active {
        transform: translateY(0);
        box-shadow: none;
    }

/* ── Link recuperar contraseña ────────────────────────────── */
.help-link {
    text-align: center;
    margin-top: 14px;
    margin-bottom: 6px;
}

    .help-link a {
        color: #2a7de1;
        text-decoration: none;
        font-size: 13px;
        font-weight: 400;
        transition: color .2s ease;
    }

        .help-link a:hover {
            color: #1e5a8e;
            text-decoration: underline;
        }

/* ── Alerta de error ──────────────────────────────────────── */
.alert-modern {
    background: #fff0f0;
    border-left: 4px solid #dc3545;
    padding: 11px 14px;
    border-radius: 8px;
    margin-top: 12px;
    animation: slideDown .3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-modern label {
    color: #dc3545;
    margin: 0;
    font-size: 13px;
}

/* ── Divisor "o accede como" ──────────────────────────────── */
.quick-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 12px;
}

.quick-divider-line {
    flex: 1;
    height: 1px;
    background: #e8edf4;
    display: block;
}

.quick-divider-txt {
    font-size: 11px;
    color: #aab8c8;
    white-space: nowrap;
}

/* ── Accesos rápidos ──────────────────────────────────────── */
.quick-access {
    display: flex;
    gap: 8px;
}

.quick-chip {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #f5f8fc;
    border: 1px solid #d0dbe8;
    border-radius: 8px;
    padding: 9px 6px;
    font-size: 11px;
    font-weight: 600;
    color: #4a6a8a;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}

    .quick-chip:hover {
        background: #EBF2FF;
        border-color: #2c7ab8;
        color: #003d7a;
        text-decoration: none;
    }

/* ── Toggle contraseña ────────────────────────────────────── */
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #7a9bb5;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color .2s ease;
}

    .toggle-password:hover {
        color: #003d7a;
    }

/* ══════════════════════════════════════════════════════════
   SECCIÓN CREAR EXPEDIENTE
══════════════════════════════════════════════════════════ */
.create-account-section {
    background: #f8f9fa;
    padding: 36px 20px;
    text-align: center;
    border-radius: 16px;
    margin-top: 24px;
}

    .create-account-section h5 {
        color: #003d7a;
        margin-bottom: 8px;
        font-size: 17px;
        font-weight: 700;
        font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    }

    .create-account-section p {
        color: #6b7c93;
        margin-bottom: 20px;
        font-size: 13px;
    }

.btn-create {
    background: #F5A623;
    color: #7a4800;
    padding: 12px 36px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: background .2s, transform .15s, box-shadow .2s;
}

    .btn-create:hover {
        background: #e89910;
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(245, 166, 35, .3);
        color: #7a4800;
        text-decoration: none;
    }

.support-text {
    margin-top: 20px;
    color: #94a3b8;
    font-size: 13px;
}

    .support-text a {
        color: #2c7ab8;
        text-decoration: none;
        font-weight: 500;
    }

        .support-text a:hover {
            text-decoration: underline;
        }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .login-wrapper {
        padding: 20px 10px;
        align-items: flex-start;
    }

    .login-card {
        flex-direction: column;
    }

    .login-visual {
        flex: 0 0 auto;
        padding: 36px 24px;
    }

    .login-form-section {
        padding: 32px 24px;
    }

    .quick-access {
        flex-direction: column;
    }

    .quick-chip {
        justify-content: flex-start;
        padding: 10px 14px;
    }
}

@media (max-width: 480px) {
    .login-form-section {
        padding: 24px 16px;
    }

    .login-header h3 {
        font-size: 20px;
    }
}

/* ══════════════════════════════════════════════════════════
   MODO OSCURO
══════════════════════════════════════════════════════════ */
[data-theme="dark"] .login-card {
    background: #1e293b;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

/* Panel izquierdo — se mantiene azul, solo ajuste sutil */
[data-theme="dark"] .login-visual {
    background: linear-gradient(160deg, #1e3a6e 0%, #152d5c 50%, #0f2347 100%);
}

/* Panel derecho — formulario */
[data-theme="dark"] .login-form-section {
    background: #1e293b;
}

/* Eyebrow "Portal Estudiantil" */
[data-theme="dark"] .form-eyebrow {
    background: rgba(59,130,246,.15);
    border-color: rgba(59,130,246,.25);
    color: #93c5fd;
}
[data-theme="dark"] .eyebrow-dot {
    background: #3b82f6;
}

/* Títulos y textos del formulario */
[data-theme="dark"] .login-header h3 { color: #f1f5f9; }
[data-theme="dark"] .login-header p  { color: #94a3b8; }
[data-theme="dark"] .modern-form-group label { color: #94a3b8; }

/* Inputs */
[data-theme="dark"] .modern-input {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
[data-theme="dark"] .modern-input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59,130,246,.15) !important;
    background: #1e293b !important;
}
[data-theme="dark"] .modern-input::placeholder {
    color: #64748b !important;
}

/* Ícono dentro del input */
[data-theme="dark"] .input-icon { stroke: #64748b; }

/* Ícono del ojo (mostrar contraseña) */
[data-theme="dark"] .toggle-password { color: #64748b; }
[data-theme="dark"] .toggle-password:hover { color: #94a3b8; }

/* Link de ayuda */
[data-theme="dark"] .help-link a { color: #60a5fa; }
[data-theme="dark"] .help-link a:hover { color: #93c5fd; }

/* Alerta de error */
[data-theme="dark"] .alert-modern {
    background: #2d1515 !important;
    border-left-color: #ef4444 !important;
    color: #fca5a5 !important;
}

/* Divisor */
[data-theme="dark"] .divider-line { background: #334155; }
[data-theme="dark"] .divider-text { color: #64748b; }

/* Quick chips (accesos rápidos) */
[data-theme="dark"] .quick-chip {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}
[data-theme="dark"] .quick-chip:hover {
    background: #1e3a5f;
    border-color: #3b82f6;
    color: #60a5fa;
}

/* Sección inferior "¿Aún no tienes cuenta?" */
[data-theme="dark"] .create-account-section {
    background: #0f172a;
    border-top: 1px solid #334155;
}
[data-theme="dark"] .create-account-section h5 { color: #f1f5f9; }
[data-theme="dark"] .create-account-section p  { color: #94a3b8; }
[data-theme="dark"] .support-text { color: #64748b; }
[data-theme="dark"] .support-text a { color: #60a5fa; }
