* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', 'Figtree', sans-serif;
  min-height: 100vh;
  background: #050b16;
  color: #fff;
}

/* Override Backpack's default flex layout */
body.app {
  display: block !important;
  align-items: unset !important;
}

.af-login-page {
  min-height: 100vh;
  overflow: hidden;
  background: #050b16;
  color: #fff;
}

.af-login-shell {
  position: relative;
  min-height: 100vh;
  padding: 0;
}

.af-login-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.28), transparent 26%),
    radial-gradient(circle at 78% 18%, rgba(59, 130, 246, 0.18), transparent 22%),
    linear-gradient(135deg, #081121 0%, #0b1730 38%, #09111f 100%);
}

.af-login-grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  grid-template-columns: 1.18fr 0.82fr;
}

.af-left {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
  overflow: hidden;
  padding: 4rem 5rem;
}

.af-left-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.92) 0%, rgba(29, 78, 216, 0.88) 30%, rgba(10, 19, 38, 0.9) 72%, rgba(5, 11, 22, 0.98) 100%);
}

.af-left-overlay-soft {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 22%, rgba(255, 255, 255, 0.16), transparent 18%),
    radial-gradient(circle at 84% 28%, rgba(255, 255, 255, 0.06), transparent 16%);
}

.af-watermark {
  position: absolute;
  left: -4rem;
  bottom: -2.25rem;
  font-size: clamp(320px, 30vw, 520px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.12em;
  color: rgba(255, 255, 255, 0.07);
  user-select: none;
}

.af-orb {
  position: absolute;
  border-radius: 999px;
}

.af-orb-top {
  right: 2.5rem;
  top: 2.5rem;
  width: 7rem;
  height: 7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  filter: blur(32px);
}

.af-orb-bottom {
  right: 4rem;
  bottom: 6rem;
  width: 10rem;
  height: 10rem;
  background: rgba(147, 197, 253, 0.1);
  filter: blur(48px);
}

.af-left-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.af-finanzas-brand {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 1.6vw, 1.25rem);
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.af-finanzas-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.af-finanzas-brand-mark img {
  width: clamp(4.25rem, 12vw, 7.5rem);
  height: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

.af-finanzas-brand-word {
  font-size: clamp(2.35rem, 5.5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #ffffff;
}

.af-left-content > .af-subtitle {
  margin-top: 0;
}

.af-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(6px);
}

.af-pill-icon,
.af-feature-icon,
.af-secure-pill-icon,
.af-card-shield {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.af-pill-icon svg,
.af-feature-icon svg,
.af-secure-pill-icon svg,
.af-card-shield svg {
  width: 1rem;
  height: 1rem;
}

.af-pill-icon img {
  width: 1.1rem;
  height: 1.1rem;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

.af-title {
  margin-top: 2rem;
  font-size: clamp(3.2rem, 5vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #fff;
}

.af-subtitle {
  margin-top: 1.5rem;
  max-width: 42rem;
  font-size: clamp(1.8rem, 2.25vw, 2.1rem);
  line-height: 1.2;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.af-copy {
  margin-top: 1.25rem;
  max-width: 40rem;
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.78);
}

.af-feature-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.af-feature-card {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  backdrop-filter: blur(10px);
}

.af-feature-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.af-feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.af-feature-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.af-feature-copy {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.af-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 3rem;
  background: #f2f4f7;
}

.af-right-radial {
  position: absolute;
  inset: 0;
  background: none;
}

.af-login-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  border-radius: 0;
  border: 0;
  background: transparent;
  padding: 0.5rem 0;
  box-shadow: none;
  backdrop-filter: none;
}

.af-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.af-secure-pill {
  display: none;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.38rem 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.58);
}

.af-card-title {
  margin-top: 0;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #0f1850;
}

.af-card-logo {
  margin-top: 0.25rem;
}

.af-card-logo svg {
  width: 100%;
  max-width: 260px;
  height: auto;
  display: block;
}

.af-card-logo img {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
}

.af-card-subtitle {
  margin-top: 0.75rem;
  max-width: 23rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #3f4a63;
}

.af-card-shield {
  display: none;
}

.af-card-shield svg {
  width: 1.75rem;
  height: 1.75rem;
}

.af-form {
  margin-top: 2.2rem;
}

.af-field {
  margin-bottom: 1.6rem;
}

.af-password-wrap {
  position: relative;
}

.af-label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: #111827;
}

.af-input {
  width: 100%;
  height: 3rem;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid #c9d5ea;
  background: transparent;
  padding: 0 0.1rem;
  font-size: 1rem;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
}

.af-password-wrap .af-input {
  padding-right: 2.2rem;
}

.af-password-toggle {
  position: absolute;
  right: 0.1rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

.af-password-toggle:hover {
  color: #1d4ed8;
}

.af-password-toggle:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-radius: 0.25rem;
}

.af-input::placeholder {
  color: #7a86a5;
}

.af-input:focus {
  border-bottom-color: #2563eb;
  box-shadow: none;
}

.af-input.is-invalid {
  border-bottom-color: #ef4444;
}

.invalid-feedback {
  display: block;
  margin-top: 0.45rem;
  color: #b91c1c;
  font-size: 0.82rem;
}

.af-form-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.25rem;
  font-size: 0.92rem;
  color: #334155;
}

.af-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.af-remember input {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  border: 1px solid #94a3b8;
  background: transparent;
  accent-color: #1d4ed8;
}

.af-recovery {
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: none;
}

.af-recovery:hover {
  color: #1e40af;
}

.af-submit {
  margin-top: 1.5rem;
  width: auto;
  min-width: 210px;
  padding: 0 2.2rem;
  height: 3.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #08144f 0%, #1d4ed8 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.af-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(8, 20, 79, 0.2);
}

.af-register-link {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  color: #4b5563;
}

.af-register-link a {
  color: #4f46e5;
  font-weight: 600;
  text-decoration: none;
}

.af-register-link a:hover {
  text-decoration: underline;
}

.af-footnote {
  margin-top: 1.75rem;
  border-radius: 0;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #4b5563;
}

.af-login-meta {
  position: absolute;
  right: 1.25rem;
  bottom: 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #64748b;
}

@media (min-width: 640px) {
  .af-form-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 1280px) {
  .af-left {
    padding: 3.5rem 3.2rem;
  }

  .af-watermark {
    font-size: clamp(280px, 28vw, 420px);
  }
}

@media (max-width: 1024px) {
  .af-login-grid {
    grid-template-columns: 1fr;
  }

  .af-left {
    padding: 2.7rem 2rem;
  }

  .af-feature-grid {
    grid-template-columns: 1fr;
  }

  .af-right {
    padding: 1.5rem;
  }

  .af-card-shield {
    display: none;
  }
}

@media (max-width: 640px) {
  .af-login-grid {
    min-height: 100vh;
  }

  .af-left {
    padding: 2rem 1.1rem;
  }

  .af-watermark {
    left: -1rem;
    bottom: -1rem;
    font-size: 200px;
  }

  .af-pill {
    font-size: 0.62rem;
    letter-spacing: 0.2em;
  }

  .af-finanzas-brand {
    gap: 0.65rem;
    margin-bottom: 0.85rem;
  }

  .af-finanzas-brand-mark img {
    width: clamp(3.5rem, 18vw, 5.5rem);
  }

  .af-finanzas-brand-word {
    font-size: clamp(1.85rem, 8vw, 2.65rem);
  }

  .af-title {
    margin-top: 1.3rem;
    font-size: 2.35rem;
  }

  .af-left-content > .af-subtitle {
    margin-top: 0;
  }

  .af-subtitle {
    font-size: 1.35rem;
  }

  .af-copy {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .af-login-card {
    border-radius: 0;
    padding: 0.5rem 0;
  }

  .af-card-title {
    font-size: 1.6rem;
  }

  .af-card-subtitle {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .af-input {
    height: 3.1rem;
    border-radius: 0;
  }

  .af-submit {
    height: 3.1rem;
    border-radius: 999px;
  }

  .af-login-meta {
    position: static;
    margin-top: 0.85rem;
    text-align: center;
  }
}
* { margin:0; padding:0; box-sizing:border-box; }
.contenedor-panel { font-family:'Figtree', sans-serif; background:#f8fafc; min-height:100vh; display:flex; }

/* Panel izquierdo (hero) por defecto con gradiente */
.left-panel {
  flex: 1;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 25%, #1d4ed8 60%, #1e40af 100%);
  position: relative; display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.left-panel::before {
  content:''; position:absolute; inset:0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><rect width="100%" height="100%" fill="url(%23a)"/></svg>') center/cover;
}
.left-panel .left-content { position:relative; z-index:1; text-align:center; color:#fff; padding:2rem; }
.left-panel .left-content h2 { font-size:2.4rem; font-weight:600; margin-bottom:1rem; text-shadow:0 2px 4px rgba(0,0,0,.3); }
.left-panel .left-content p { font-size:1.05rem; opacity:.95; max-width:460px; line-height:1.6; margin:0 auto; }

/* Variante: imagen de fondo (añade la clase left-panel--image) */
.left-panel--image { background: #000; }
.left-panel--image::before { content:none; } /* para que no se superponga el svg */
.left-panel--image { background: url('/images/login/full.jpg') no-repeat center center / cover; }

/* Panel derecho (formulario) */
.right-panel { flex:1; background:#fff; display:flex; align-items:center; justify-content:center; padding:2rem; position:relative; }
.form-shell, .login-container { width:100%; max-width:440px; padding:0 1rem; }

/* Enlace superior derecho */
.top-right-link { position:absolute; top:1.5rem; right:1.5rem; color:#6b7280; text-decoration:none; font-size:.875rem; }
.top-right-link:hover { color:#2563eb; text-decoration:underline; }

/* Encabezados / branding */
.header, .login-header { text-align:center; margin-bottom:2rem; }
.logo { height:70px; margin-bottom:1rem; }
.brand { color:#2563eb; font-size:1.1rem; font-weight:700; }
.title, .welcome-text { font-size:1.5rem; font-weight:600; color:#1f2937; margin-top:.25rem; }
.logo-box, .contpaq-logo { width:60px; height:60px; background:#2563eb; border-radius:12px; display:flex; align-items:center; justify-content:center; margin:0 auto 1rem; box-shadow:0 4px 12px rgba(37,99,235,.3); }
.logo-box i, .contpaq-logo i { color:#fff; font-size:1.6rem; }
.brand-text { color:#2563eb; font-size:1.5rem; font-weight:700; margin-bottom:.5rem; }

/* Formularios */
.form-group { margin-bottom:1rem; }
.form-label { display:block; font-size:.9rem; font-weight:500; color:#374151; margin-bottom:.5rem; }
.required { color:#ef4444; }
.form-input, .form-control-custom, .form-control-alike {
  width:100%; padding:.875rem 1rem; border:1.5px solid #d1d5db; border-radius:8px; font-size:1rem;
  transition:all .2s ease; background:#fff;
}
.form-input:focus, .form-control-custom:focus, .form-control-alike:focus {
  outline:none; border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,.1);
}
.form-input::placeholder { color:#9ca3af; }

/* Campo password + toggle */
.password-field { position:relative; }
.password-toggle { position:absolute; right:1rem; top:50%; transform:translateY(-50%); background:none; border:none; color:#6b7280; cursor:pointer; padding:.25rem; }
.password-toggle:hover { color:#2563eb; }

/* Botones (login/register/reset) */
.login-button, .action-button {
  width:100%; background:#2563eb; color:#fff; border:none; padding:.875rem 1.5rem; border-radius:8px;
  font-size:1rem; font-weight:600; cursor:pointer; transition:all .2s ease;
  box-shadow:0 4px 12px rgba(37,99,235,.3);
}
.login-button:hover, .action-button:hover { background:#1d4ed8; transform:translateY(-1px); box-shadow:0 6px 20px rgba(37,99,235,.4); }
.login-button:active, .action-button:active { transform:translateY(0); }

/* Recuerdame / opciones */
.form-options { display:flex; justify-content:flex-start; align-items:center; margin:1.25rem 0; }
.remember-me { display:flex; align-items:center; gap:.5rem; }
.remember-me input { width:1rem; height:1rem; accent-color:#2563eb; }
.remember-me label { font-size:.875rem; color:#6b7280; cursor:pointer; }

/* Links inferiores */
.below-links, .register-link { text-align:center; margin-top:1rem; }
.register-link { padding-top:1.5rem; border-top:1px solid #e5e7eb; }
.below-links a, .register-link a, .forgot-password { color:#2563eb; text-decoration:none; font-weight:500; font-size:.875rem; }
.below-links a:hover, .register-link a:hover, .forgot-password:hover { text-decoration:underline; }

/* Tarjeta ligera y alertas */
.card-like { background:#fff; border:1px solid #e5e7eb; border-radius:12px; box-shadow:0 4px 12px rgba(0,0,0,.04); }
.card-body { padding:1.25rem; }
.alert { border-radius:10px; }

/* Steps / nav tabs */
.nav-steps-wrapper { margin-bottom:1rem; }
.nav-tabs .nav-link { font-weight:600; }
.nav-tabs .nav-link.disabled { cursor:not-allowed; }

    ul.text-red-600{
        color: #b91c1c;
        font-weight: 600;
        list-style: none;
        padding-left: 0;
    }

/* Responsive */
@media (max-width: 768px) {
  .contenedor-panel { flex-direction:column; }
  .left-panel { min-height:200px; flex:none; }
  .right-panel { flex:1; padding:1rem; }
  .left-panel .left-content h2 { font-size:1.8rem; }
}
