/* =========================================================
   Academy Paymen — Aula Virtual IESTP
   Login screen — tema institucional (verde + dorado)
   ========================================================= */

:root {
    --green-900: #063220;
    --green-800: #0a4a2f;
    --green-700: #0f6b41;
    --green-600: #15804d;
    --green-500: #1c9c5e;
    --green-400: #3fb877;

    --gold-700: #8a6410;
    --gold-600: #b8860b;
    --gold-500: #cf9d1e;
    --gold-400: #e0b93c;

    --ink-900: #0f172a;
    --ink-600: #475569;
    --ink-400: #94a3b8;
    --surface: #ffffff;
    --surface-muted: #f7faf8;
    --border: #e2e8e5;
    --danger-bg: #fef2f2;
    --danger-text: #b91c1c;
    --danger-border: #fecaca;

    /* colores de acento para las cards de carreras (estilo "benefits") */
    --card-blue-bg: #eaf1ff;
    --card-blue-ink: #2563eb;
    --card-purple-bg: #f2ecfe;
    --card-purple-ink: #7c3aed;
    --card-orange-bg: #fff1e6;
    --card-orange-ink: #ea7c1c;
    --card-teal-bg: #e6faf3;
    --card-teal-ink: #0f9d78;

    --radius-lg: 24px;
    --radius-md: 14px;
    --radius-sm: 10px;

    --shadow-card: 0 30px 60px -20px rgba(6, 50, 32, 0.35);
    --font-body: 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background: var(--green-900);
    color: var(--ink-900);
    -webkit-font-smoothing: antialiased;
}

/* =========================================================
   CONTENEDOR PRINCIPAL — a pantalla completa, sin margen
   ni borde redondeado exterior.
   ========================================================= */

.login-container {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    width: 100vw;
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

/* =========================================================
   LADO IZQUIERDO — PANEL DE MARCA (foto desenfocada + overlay)
   ========================================================= */

.login-image {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 70px 60px 100px;
    background: var(--green-900);
}

/* Foto real del instituto, desenfocada (efecto "blur") para que
   sirva de textura de fondo sin competir con el texto.
   Reemplaza la ruta por tu foto real. */
.login-image::before {
    content: "";
    position: absolute;
    inset: -12px;
    background-image: url('../img/image.jpeg');
    background-size: cover;
    background-position: center;
    filter: blur(7px);
    transform: scale(1.06);
    z-index: 0;
}

/* Degradado institucional (verde -> dorado) + viñeta en los 4 bordes
   para que el verde se note también arriba y a los costados */
.login-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(130% 130% at 50% 50%, transparent 45%, rgba(6, 60, 38, 0.55) 100%),
        linear-gradient(180deg, rgba(6, 60, 38, 0.7) 0%, rgba(10, 74, 47, 0.42) 32%, rgba(10, 74, 47, 0.42) 62%, rgba(120, 88, 12, 0.78) 100%);
    z-index: 1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 1;
}

.blob-1 {
    width: 380px;
    height: 380px;
    top: -140px;
    left: -100px;
    background: var(--green-400);
}

.blob-2 {
    width: 420px;
    height: 420px;
    bottom: -180px;
    right: -140px;
    background: var(--gold-500);
}

.blob-3 {
    width: 260px;
    height: 260px;
    top: 45%;
    left: 60%;
    background: #ffffff;
    opacity: 0.06;
}

.image-content {
    position: relative;
    z-index: 2;
    max-width: 920px;
    width: 100%;
    color: #ffffff;
    text-align: center;
    margin: 0 auto;
}

.image-logo {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(21, 128, 77, 0.85);
    border: 3px solid rgba(224, 185, 60, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 21px;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.45);
}

.image-content h1 {
    margin: 0 0 72px;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.15;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.image-content h3 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
}

.tagline {
    display: table;
    margin: 0 auto 70px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    text-align: center;
    color: var(--gold-400);
    background: rgba(224, 185, 60, 0.12);
    border: 1px solid rgba(224, 185, 60, 0.4);
    border-radius: 999px;
    box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.35);
}

.image-content p:not(.tagline) {
    max-width: 680px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
    text-align: left;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

/* ---------------------------------------------------------
   Características (chips)
   --------------------------------------------------------- */

.features {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);

    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0 20px;
}

.feature {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(6, 40, 26, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 9px 16px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.feature i {
    font-size: 14px;
    color: var(--gold-400);
}

/* ---------------------------------------------------------
   Carreras — cards estilo "benefits" (icono arriba + texto abajo)
   --------------------------------------------------------- */

.programs {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: 125px;
    margin-bottom: 0;
}

.programs-title {
    margin: 0 0 10px;
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold-400);
}

.programs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.program-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 12px 24px -14px rgba(0, 0, 0, 0.45);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.program-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 28px -14px rgba(0, 0, 0, 0.5);
}

.program-card-header {
    position: relative;
    display: block;
    height: 90px;
    overflow: visible;
}

.program-card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.program-card-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.35) 100%);
}

.program-badge {
    position: absolute;
    z-index: 2;
    bottom: -14px;
    left: 14px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-400);
    color: var(--green-900);
    font-size: 11.5px;
    font-weight: 800;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 10px -3px rgba(0, 0, 0, 0.4);
}

.program-card-body {
    padding: 22px 12px 16px;
    text-align: center;
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.program-name {
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink-900);
}

/* variantes de gradiente para el header de cada card */
.header-blue {
    background: linear-gradient(135deg, #2563eb, #1e3a8a);
}

.header-purple {
    background: linear-gradient(135deg, #8b5cf6, #4c1d95);
}

.header-orange {
    background: linear-gradient(135deg, #f97316, #9a3412);
}

.header-teal {
    background: linear-gradient(135deg, #14b8a6, #115e59);
}

/* =========================================================
   LADO DERECHO — FORMULARIO
   ========================================================= */

.login-form-container {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-muted);
    padding: 40px 32px;
}

.login-form-container::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    top: -160px;
    right: -160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(21, 128, 77, 0.10), transparent 70%);
    pointer-events: none;
}

.login-form-container::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    bottom: -160px;
    left: -140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(207, 157, 30, 0.10), transparent 70%);
    pointer-events: none;
}

.login-form {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 44px 38px;
}

.logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-600), var(--gold-500));
    color: #ffffff;
    font-weight: 800;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 20px -8px rgba(21, 128, 77, 0.55);
}

.login-title {
    text-align: center;
    margin-bottom: 28px;
}

.login-title h2 {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 800;
    color: var(--green-700);
    letter-spacing: -0.3px;
}

.login-title p {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-600);
}

.login-title small {
    font-size: 12.5px;
    color: var(--ink-400);
}

/* ---------------------------------------------------------
   Alerta de error
   --------------------------------------------------------- */

.alert-danger {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid var(--danger-border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 13.5px;
    margin-bottom: 18px;
}

/* ---------------------------------------------------------
   Campos del formulario
   --------------------------------------------------------- */

.mb-3 {
    margin-bottom: 18px;
}

.mb-4 {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    font-size: 14.5px;
    font-family: inherit;
    color: var(--ink-900);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control::placeholder {
    color: var(--ink-400);
}

.form-control:focus {
    outline: none;
    border-color: var(--green-500);
    box-shadow: 0 0 0 3px rgba(28, 156, 94, 0.18);
}

/* ---------------------------------------------------------
   Botón de mostrar/ocultar contraseña
   --------------------------------------------------------- */

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 46px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--ink-400);
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.toggle-password i {
    font-size: 17px;
}

.toggle-password:hover {
    color: var(--green-600);
    background: rgba(28, 156, 94, 0.08);
}

.toggle-password:focus-visible {
    outline: 2px solid rgba(28, 156, 94, 0.5);
    outline-offset: 1px;
}

/* ---------------------------------------------------------
   Botón
   --------------------------------------------------------- */

.btn-login {
    width: 100%;
    padding: 13px 14px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--green-600), var(--green-500));
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow: 0 14px 24px -12px rgba(21, 128, 77, 0.65);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-login:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 18px 28px -12px rgba(21, 128, 77, 0.7);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:focus-visible {
    outline: 3px solid rgba(28, 156, 94, 0.45);
    outline-offset: 2px;
}




/* =========================================================
 RESPONSIVE — CELULAR SOLO MOSTRAR LOGIN 
 ========================================================= 
 */ @media (max-width: 600px) 
 { html, body { width: 100%;
     height: 100%; min-height: 100%; 
     margin: 0; padding: 0; 
     overflow-x: hidden; } 
     body { background: var(--surface-muted); }
      /* ===================================================== 
      OCULTAR COMPLETAMENTE EL PANEL IZQUIERDO
       ===================================================== */
        .login-image { display: none !important; } 
        /* ===================================================== 
        CONTENEDOR PRINCIPAL
         ===================================================== 
         */ .login-container 
         { display: block; 
            width: 100%; 
            height: 100vh; 
            min-height: 100vh; 
            margin: 0; padding: 0; 
            overflow: hidden; }
          /* ===================================================== 
          CONTENEDOR DEL LOGIN 
          ===================================================== 
          */ .login-form-container
           { position: relative; width: 100%; height: 100vh; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px 16px; background: var(--surface-muted); } /* ===================================================== DECORACIÓN DE FONDO ===================================================== */ .login-form-container::before { width: 350px; height: 350px; top: -120px; right: -120px; } .login-form-container::after { width: 300px; height: 300px; bottom: -120px; left: -100px; } /* ===================================================== TARJETA DEL LOGIN ===================================================== */ .login-form { position: relative; z-index: 2; width: 100%; max-width: 390px; padding: 34px 24px; background: #ffffff; border-radius: 20px; box-shadow: 0 20px 50px -20px rgba(6, 50, 32, 0.35); } /* ===================================================== TÍTULO ===================================================== */ .login-title { text-align: center; margin-bottom: 28px; } .login-title h2 { margin: 0 0 6px; font-size: 23px; line-height: 1.2; color: var(--green-700); } .login-title small { font-size: 12px; } /* ===================================================== CAMPOS ===================================================== */ .mb-3 { margin-bottom: 18px; } .mb-4 { margin-bottom: 24px; } .form-label { font-size: 13px; margin-bottom: 7px; } .form-control { width: 100%; height: 48px; padding: 12px 14px; font-size: 14px; border-radius: var(--radius-sm); } /* ===================================================== CONTRASEÑA ===================================================== */ .password-field .form-control { padding-right: 48px; } .toggle-password { width: 36px; height: 36px; right: 6px; } /* ===================================================== BOTÓN INGRESAR ===================================================== */ .btn-login { width: 100%; height: 48px; padding: 12px; font-size: 14px; font-weight: 700; } /* ===================================================== MENSAJE DE ERROR ===================================================== */ .alert-danger { font-size: 12.5px; line-height: 1.4; padding: 10px 12px; margin-bottom: 18px; } }