:root {
  --orange:  #fe9e03;
  --yellow:  #ffd600;
  --blue:    #0faceb;
  --lime:    #dadf2d;
  --dark:    #0d1117;
  --dark2:   #151b24;
  --dark3:   #1c2535;
  --panel:   rgba(255,255,255,0.04);
  --border:  rgba(255,255,255,0.08);
  --text:    #e8edf5;
  --muted:   #7a8ba0;
  --radius:  14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--dark);
  color: var(--text);
  min-height: 100vh;
  overflow: hidden;
}

/* ─── BACKGROUND ─── */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 75% 50%, rgba(15,172,235,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(254,158,3,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 80% 10%, rgba(218,223,45,0.06) 0%, transparent 50%),
    var(--dark);
}

/* Subtle grid */
.bg-scene::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Decorative geometric shape - inspired by logo */
.geo-shape {
  position: fixed;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 680px;
  height: 680px;
  opacity: 0.07;
  animation: slowSpin 60s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.geo-shape svg {
  width: 100%;
  height: 100%;
}

.geo-shape-2 {
  position: fixed;
  left: -200px;
  bottom: -150px;
  width: 500px;
  height: 500px;
  opacity: 0.04;
  animation: slowSpin 80s linear infinite reverse;
  pointer-events: none;
  z-index: 0;
}

@keyframes slowSpin {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}

.geo-shape-2 { animation: slowSpin2 80s linear infinite reverse; }
@keyframes slowSpin2 {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ─── LAYOUT ─── */
.page-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 100vh;
}

/* LEFT PANEL */
.left-panel {
  width: 480px;
  min-width: 420px;
  min-height: 100vh;
  background: rgba(13,17,23,0.85);
  backdrop-filter: blur(24px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 56px;
  position: relative;
  z-index: 2;
}

/* Top accent bar */
.left-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--lime), var(--orange));
}

/* RIGHT INFO PANEL */
.right-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  z-index: 1;
}

/* ─── LOGO AREA ─── */
.logo-area {
  margin-bottom: 48px;
}

.logo-inline {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-inline img {
  height: 54px;
  width: auto;
  filter: brightness(1.05);
  flex-shrink: 0;
}

.logo-text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-name {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.4px;
  line-height: 1.1;
}

.logo-tagline {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* ─── FORM HEADING ─── */
.form-heading {
  margin-bottom: 36px;
}

.form-heading h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.3px;
}

.form-heading p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 300;
}

/* ─── FORM FIELDS ─── */
.field-group {
  margin-bottom: 20px;
}

.field-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.field-group .input-wrap {
  position: relative;
}

.field-group .input-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s;
}

.field-group input[type="text"],
.field-group input[type="password"] {
  width: 100%;
  background: var(--dark3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 16px 14px 44px;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field-group input::placeholder { color: #3d4e62; }

.field-group input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(15,172,235,0.12);
}

.field-group input:focus + i,
.field-group .input-wrap:focus-within i { color: var(--blue); }

/* ─── TOGGLE PASSWORD ─── */
.toggle-pass {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  transition: color 0.2s;
  background: none;
  border: none;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.toggle-pass:hover { color: var(--blue); background: rgba(15,172,235,0.08); }

/* Ensure password input leaves room for the eye icon */
#password { padding-right: 46px !important; }

/* ─── FORGOT ─── */
.forgot-link {
  display: block;
  text-align: right;
  font-size: 12.5px;
  color: var(--blue);
  text-decoration: none;
  margin-top: -8px;
  margin-bottom: 28px;
  transition: color 0.2s;
}
.forgot-link:hover { color: var(--orange); }

/* ─── SUBMIT BUTTON ─── */
.btn-login {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue) 0%, #0887c0 100%);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(15,172,235,0.25);
}

.btn-login::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(15,172,235,0.35);
}

.btn-login:active { transform: translateY(0); }

/* ─── MESSAGES ─── */
.msg-area { margin-bottom: 16px; min-height: 20px; }

.msg_error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  display: none;
}

.msg_ok {
  background: rgba(15,172,235,0.1);
  border: 1px solid rgba(15,172,235,0.3);
  color: var(--blue);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  display: none;
}

/* ─── COPYRIGHT ─── */
.copyright {
  margin-top: 40px;
  font-size: 11px;
  color: #3a4a5c;
  text-align: center;
  letter-spacing: 0.5px;
}

/* ─── DIVIDER ─── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}

/* ─── RIGHT PANEL CONTENT ─── */
.intranet-info {
  text-align: center;
  max-width: 440px;
}

.color-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
}

.color-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.intranet-info h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.intranet-info h2 span { color: var(--blue); }

.intranet-info p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
}

.stats-row {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 52px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 700;
}

.stat-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ─── FORGOT PASSWORD PANEL ─── */
#forgetpass {
  position: fixed;
  top: 0; left: -50%;
  width: 480px;
  min-width: 420px;
  min-height: 100vh;
  background: rgba(13,17,23,0.97);
  backdrop-filter: blur(24px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 56px;
  z-index: 100;
  transition: left 0.4s cubic-bezier(0.4,0,0.2,1);
}

#forgetpass::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--yellow), var(--lime));
}

.fp-heading {
  margin-bottom: 8px;
}

.fp-heading h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}

.fp-heading p {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.6;
  font-weight: 300;
}

.btn-submit-fp {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--orange) 0%, #e08a00 100%);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(254,158,3,0.2);
}

.btn-submit-fp:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(254,158,3,0.3);
}

.btn-cancel-fp {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-cancel-fp:hover { border-color: var(--muted); color: var(--text); }

/* ─── LOADING ─── */
.loading_screen {
  position: fixed;
  inset: 0;
  background: rgba(13,17,23,0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loading_screen .spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading_screen .text_loading_screen {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════════
   BIRTHDAY LAYER — 100% CSS, sin canvas, sin JS de animación.
   Solo transform + opacity → GPU compositor, cero CPU.
═══════════════════════════════════════════════════════════ */

.cumple_layer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(4, 7, 12, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── Orbes de color flotantes (6 elementos, puro CSS) ────────
   Usan transform: translate que el navegador delega a la GPU.
   No generan repaints — son composited layers.               */
.cumple_orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  will-change: transform, opacity;
}
.cumple_orb:nth-child(1){
  width:380px; height:380px;
  background: rgba(15,172,235,0.18);
  top:-80px; left:-60px;
  animation: orbFloat1 12s ease-in-out infinite;
}
.cumple_orb:nth-child(2){
  width:300px; height:300px;
  background: rgba(254,158,3,0.16);
  bottom:-60px; right:-40px;
  animation: orbFloat2 15s ease-in-out infinite;
}
.cumple_orb:nth-child(3){
  width:260px; height:260px;
  background: rgba(218,223,45,0.12);
  top:40%; left:60%;
  animation: orbFloat3 10s ease-in-out infinite;
}
.cumple_orb:nth-child(4){
  width:200px; height:200px;
  background: rgba(255,214,0,0.10);
  bottom:20%; left:10%;
  animation: orbFloat1 18s ease-in-out infinite reverse;
}
.cumple_orb:nth-child(5){
  width:160px; height:160px;
  background: rgba(15,172,235,0.10);
  top:60%; right:15%;
  animation: orbFloat2 13s ease-in-out infinite reverse;
}
.cumple_orb:nth-child(6){
  width:220px; height:220px;
  background: rgba(254,158,3,0.08);
  top:30%; left:5%;
  animation: orbFloat3 16s ease-in-out infinite;
}

/* Solo translate — cero repaints */
@keyframes orbFloat1 {
  0%,100% { transform: translate(0, 0); }
  33%      { transform: translate(30px, -25px); }
  66%      { transform: translate(-20px, 20px); }
}
@keyframes orbFloat2 {
  0%,100% { transform: translate(0, 0); }
  40%      { transform: translate(-35px, 20px); }
  70%      { transform: translate(25px, -30px); }
}
@keyframes orbFloat3 {
  0%,100% { transform: translate(0, 0); }
  50%      { transform: translate(20px, 30px); }
}

/* ── Chispas decorativas (8 puntos fijos, solo opacity) ───── */
.cumple_spark {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: opacity;
}
.cumple_spark:nth-child(7)  { width:5px;height:5px;background:#ffd600;top:18%;left:22%;  animation:sparkle 2.4s ease-in-out infinite; }
.cumple_spark:nth-child(8)  { width:4px;height:4px;background:#0faceb;top:72%;left:70%;  animation:sparkle 3.1s ease-in-out infinite 0.5s; }
.cumple_spark:nth-child(9)  { width:6px;height:6px;background:#fe9e03;top:30%;right:18%; animation:sparkle 2.8s ease-in-out infinite 1s; }
.cumple_spark:nth-child(10) { width:4px;height:4px;background:#dadf2d;bottom:28%;left:30%;animation:sparkle 3.5s ease-in-out infinite 0.3s; }
.cumple_spark:nth-child(11) { width:5px;height:5px;background:#fff;   top:55%;left:15%;  animation:sparkle 2.2s ease-in-out infinite 1.5s; }
.cumple_spark:nth-child(12) { width:3px;height:3px;background:#ffd600;bottom:18%;right:25%;animation:sparkle 2.9s ease-in-out infinite 0.8s; }
.cumple_spark:nth-child(13) { width:5px;height:5px;background:#0faceb;top:12%;right:30%; animation:sparkle 3.3s ease-in-out infinite 0.2s; }
.cumple_spark:nth-child(14) { width:4px;height:4px;background:#fe9e03;bottom:40%;right:8%;animation:sparkle 2.6s ease-in-out infinite 1.2s; }

/* Solo opacity — no repaint */
@keyframes sparkle {
  0%,100% { opacity: 0; transform: scale(0.6); }
  50%      { opacity: 1; transform: scale(1.2); }
}

/* ── Tarjeta central ──────────────────────────────────────── */
.cumple_content {
  position: relative;
  z-index: 10;
  width: 460px;
  background: linear-gradient(160deg, #101820 0%, #0d1117 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  padding: 48px 44px 40px;
  text-align: center;
  box-shadow:
    0 0 0 1px rgba(15,172,235,0.10),
    0 40px 80px rgba(0,0,0,0.6),
    0 0 80px rgba(254,158,3,0.05);
  animation: cardPop 0.55s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes cardPop {
  from { transform: scale(0.80) translateY(20px); opacity: 0; }
  to   { transform: scale(1)    translateY(0);    opacity: 1; }
}

/* Barra superior degradada */
.cumple_content::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(90deg, #0faceb 0%, #dadf2d 35%, #fe9e03 70%, #ffd600 100%);
}

/* Icono torta */
.cumple_icon {
  font-size: 54px;
  line-height: 1;
  margin-bottom: 18px;
  display: block;
  animation: iconBounce 2s ease-in-out infinite;
}
@keyframes iconBounce {
  0%,100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-10px) rotate(3deg); }
}

/* Badge "¡Hoy es tu día!" */
.cumple_badge {
  display: inline-block;
  background: rgba(15,172,235,0.08);
  border: 1px solid rgba(15,172,235,0.22);
  color: #0faceb;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 18px;
}

/* Título principal */
.cumple_titulo {
  font-family: 'Outfit', sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.05;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fe9e03 0%, #ffd600 50%, #dadf2d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtítulo */
.cumple_subtitulo {
  font-size: 13.5px;
  color: #4a6070;
  font-weight: 300;
  margin-bottom: 26px;
  line-height: 1.65;
}

/* Divisor */
.cumple_divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
  margin: 0 0 22px;
}

/* Nombre del empleado */
#nombre_emp {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #e8edf5;
  letter-spacing: -0.2px;
  margin-bottom: 6px;
}

/* Hint de cierre */
.cumple_close_hint {
  margin-top: 26px;
  font-size: 11px;
  color: #1e2e3a;
  letter-spacing: 0.5px;
  cursor: pointer;
}

/* ─── IFRAME (events) ─── */
#iframe_eventos {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 12px;
  background: transparent;
  opacity: 0.9;
}

/* ─── ENTRY ANIMATIONS ─── */
.left-panel { animation: slideIn 0.6s cubic-bezier(0.4,0,0.2,1) both; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.right-panel { animation: fadeUp 0.7s 0.15s cubic-bezier(0.4,0,0.2,1) both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .right-panel { display: none; }
  .left-panel { width: 100%; min-width: unset; border-right: none; }
  #forgetpass { width: 100%; min-width: unset; }
}