/* FactTec login */

html, body.ft-body, body.ft-body #app {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100% !important;
  height: 100% !important;
  background: #0b3d32 !important;
  font-family: "Manrope", system-ui, sans-serif !important;
  color: #10231c;
  -webkit-font-smoothing: antialiased;
}

body.ft-body .navbar,
body.ft-body .content-body,
body.ft-body .content-body-auth {
  display: none !important;
}

.ft {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.12fr 1fr;
}

/* —— Panel marca —— */
.ft-hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 3rem 2rem;
  display: flex;
  flex-direction: column;
  color: #e8f5f0;
  background: linear-gradient(155deg, #0b3d32 0%, #0f5c4a 48%, #147a5f 100%);
}

.ft-hero__glow {
  position: absolute;
  width: 55vw;
  height: 55vw;
  max-width: 640px;
  max-height: 640px;
  right: -18%;
  top: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 255, 220, 0.22), transparent 68%);
  pointer-events: none;
  animation: ft-float 8s ease-in-out infinite alternate;
}

.ft-hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.ft-hero__top {
  position: relative;
  z-index: 1;
}

.ft-hero__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.ft-hero__wordmark {
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  color: #fff;
}

.ft-logo-mark {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
}

.ft-logo-mark svg {
  display: block;
}

/* —— Slider —— */
.ft-slider {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 36rem;
  margin: 1.25rem 0 1.5rem;
}

.ft-slider__track {
  position: relative;
  min-height: 420px;
}

.ft-slide {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.ft-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.ft-slide__visual {
  margin: 0 0 1.35rem;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.ft-slide__visual svg {
  display: block;
  width: 100%;
  height: auto;
}

.ft-slide__tag {
  margin: 0 0 0.7rem;
  font-family: "Sora", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 245, 240, 0.62);
}

.ft-slide__title {
  margin: 0;
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: #fff;
}

.ft-slide__text {
  margin: 0.85rem 0 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(232, 245, 240, 0.84);
  max-width: 34rem;
}

.ft-slide__chips {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ft-slide__chips li {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #0b3d32;
  background: rgba(159, 232, 200, 0.92);
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
}

.ft-slider__dots {
  display: flex;
  gap: 0.45rem;
  margin-top: 1.35rem;
}

.ft-slider__dot {
  width: 8px;
  height: 8px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.ft-slider__dot.is-active {
  width: 26px;
  background: #9fe8c8;
}

.ft-hero__foot {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(232, 245, 240, 0.5);
  letter-spacing: 0.03em;
}

/* —— Formulario —— */
.ft-main {
  background: #f6f9f7;
  display: grid;
  place-items: center;
  padding: 2.5rem 1.5rem;
  animation: ft-in 0.8s ease 0.1s both;
}

.ft-main__inner {
  width: 100%;
  max-width: 380px;
}

.ft-main__mobile-brand {
  display: none;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.ft-main__mobile-brand .ft-hero__wordmark {
  color: #0b3d32;
  font-size: 1.35rem;
}

.ft-main__header h2 {
  margin: 0;
  font-family: "Sora", system-ui, sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #10231c;
}

.ft-main__header p {
  margin: 0.5rem 0 0;
  color: #5d7269;
  font-size: 0.98rem;
  font-weight: 500;
}

.ft-form {
  margin-top: 2rem;
  display: grid;
  gap: 1.15rem;
}

.ft-field {
  display: grid;
  gap: 0.5rem;
}

.ft-field label {
  font-size: 0.875rem;
  font-weight: 650;
  color: #243830;
}

.ft-input,
.ft-field input.ft-input,
input.ft-input[type="email"],
input.ft-input[type="password"] {
  box-sizing: border-box !important;
  width: 100% !important;
  height: 52px !important;
  margin: 0 !important;
  border: 1.5px solid #d5e0da !important;
  border-radius: 12px !important;
  padding: 0 1rem !important;
  font-size: 1rem !important;
  font-family: "Manrope", system-ui, sans-serif !important;
  font-weight: 500 !important;
  color: #10231c !important;
  background: #fff !important;
  box-shadow: none !important;
  outline: none !important;
  transition: border-color 0.15s, box-shadow 0.15s !important;
  -webkit-appearance: none !important;
}

.ft-input:focus,
input.ft-input:focus {
  border-color: #0d7a5f !important;
  box-shadow: 0 0 0 4px rgba(13, 122, 95, 0.15) !important;
}

.ft-input:-webkit-autofill,
.ft-input:-webkit-autofill:hover,
.ft-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #10231c !important;
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  transition: background-color 9999s ease-out;
}

.ft-field.is-invalid .ft-input {
  border-color: #c0392b !important;
}

.ft-error {
  color: #c0392b;
  font-size: 0.82rem;
  font-weight: 600;
}

.ft-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ft-check {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: #5d7269;
  cursor: pointer;
  user-select: none;
}

.ft-check input {
  width: 17px;
  height: 17px;
  accent-color: #0d7a5f;
  margin: 0;
}

.ft-btn {
  margin-top: 0.35rem;
  height: 52px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: #0d7a5f;
  color: #fff;
  font-family: "Sora", system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 10px 24px rgba(13, 122, 95, 0.28);
}

.ft-btn:hover {
  background: #0a634d;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(13, 122, 95, 0.32);
}

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

.ft-copy {
  margin: 2rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: #8a9c94;
}

@keyframes ft-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ft-float {
  from { transform: translate(0, 0); }
  to { transform: translate(-18px, 22px); }
}

@media (max-width: 900px) {
  .ft {
    grid-template-columns: 1fr;
  }
  .ft-hero {
    display: none;
  }
  .ft-main__mobile-brand {
    display: inline-flex;
  }
  .ft-main {
    background:
      radial-gradient(700px 420px at 100% 0%, rgba(13, 122, 95, 0.12), transparent 55%),
      #f6f9f7;
  }
}
