/* Ftgainvest auth pages — landing CSS + lime brand */
:root {
  --ftg-lime: #c0ff5e;
  --ftg-lime-ink: #102018;
  --ftg-dark: #0b0d0a;
  --ftg-card: #121613;
  --ftg-border: rgba(192, 255, 94, 0.22);
  --ftg-muted: #9aa392;
  --ftg-text: #f3f6ee;
}

html,
body.ftg-auth-body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(192, 255, 94, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(28, 63, 58, 0.35), transparent 50%),
    #0b0d0a !important;
  color: var(--ftg-text);
  overflow-x: hidden;
}

.ftg-auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ftg-auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 5%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(11, 13, 10, 0.72);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.ftg-auth-top-logo {
  max-height: 2.25rem;
  width: auto;
  object-fit: contain;
}

.ftg-auth-top-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ftg-auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 5% 3rem;
}

.ftg-auth-shell {
  width: 100%;
  max-width: 28rem;
  height: 100%;
  display: flex;
}

.ftg-auth-shell.is-wide {
  max-width: 40rem;
}

.ftg-auth-card {
  background: rgba(18, 22, 19, 0.92);
  border: 1px solid var(--ftg-border);
  border-radius: 1.5rem;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ftg-auth-card h1,
.ftg-auth-card h4 {
  margin: 0 0 0.35rem;
  color: #fff;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  line-height: 1.2;
}

.ftg-auth-lead {
  margin: 0 0 1.35rem;
  color: var(--ftg-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.ftg-auth-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.ftg-auth-grid.is-2 {
  grid-template-columns: 1fr 1fr;
}

.ftg-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  color: var(--ftg-muted);
}

.ftg-field .form-control,
.ftg-field select.form-control {
  width: 100%;
  min-height: 3rem;
  border-radius: 0.85rem !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: #fff !important;
  padding: 0.75rem 0.95rem !important;
  box-shadow: none !important;
}

.ftg-field .form-control:focus,
.ftg-field select.form-control:focus {
  border-color: rgba(192, 255, 94, 0.55) !important;
  outline: none;
}

.ftg-field .form-control::placeholder {
  color: rgba(243, 246, 238, 0.4);
}

.ftg-field select.form-control option {
  color: #111;
}

.ftg-auth-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0.85rem 0 1.1rem;
  font-size: 0.9rem;
}

.ftg-auth-meta a {
  color: var(--ftg-lime) !important;
  text-decoration: none;
}

.ftg-auth-meta .form-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}

.ftg-auth-meta .form-check-input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--ftg-lime);
}

.ftg-auth-meta .form-check-label {
  color: var(--ftg-muted);
}

.ftg-submit,
.ftg-auth-card .button.ftg-submit {
  width: 100%;
  justify-content: center;
  text-align: center;
  min-height: 3rem;
  border-radius: 999px !important;
  background: var(--ftg-lime) !important;
  color: var(--ftg-lime-ink) !important;
  border: 1px solid var(--ftg-lime) !important;
  font-weight: 700;
  cursor: pointer;
}

.ftg-auth-switch {
  margin-top: 1rem;
  text-align: center;
  color: var(--ftg-muted);
  font-size: 0.92rem;
}

.ftg-auth-switch a {
  color: var(--ftg-lime) !important;
  font-weight: 600;
  text-decoration: none;
}

.ftg-auth-footer {
  padding: 1rem 5% 1.5rem;
  text-align: center;
}

.text-danger {
  color: #ff7b7b !important;
  font-size: 0.8rem;
}

.ftg-field {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 0.9rem;
  top: 2.35rem;
  color: var(--ftg-muted);
  cursor: pointer;
}

.captcha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.85rem;
  padding: 0.35rem 0.5rem;
}

.captcha img {
  width: 120px;
}

.ftg-auth-side {
  display: none;
  height: 100%;
}

.ftg-auth-visual {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(192, 255, 94, 0.22);
  min-height: 22rem;
  height: 100%;
  background: #121613;
}

.ftg-auth-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ftg-auth-visual-card {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.35rem 1.4rem 1.5rem;
  background: linear-gradient(180deg, transparent, rgba(11, 13, 10, 0.88) 28%, rgba(11, 13, 10, 0.96) 100%);
}

.ftg-auth-visual-card h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  line-height: 1.15;
  color: #fff;
}

.ftg-auth-visual-card p {
  margin: 0;
  color: var(--ftg-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 28rem;
}

.ftg-auth-points {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.ftg-auth-points li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--ftg-text);
  font-size: 0.9rem;
}

.ftg-auth-points li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: var(--ftg-lime);
  flex: 0 0 auto;
}

.ftg-auth-shell {
  width: 100%;
  max-width: 28rem;
  height: 100%;
  display: flex;
}

.ftg-auth-shell.is-wide {
  max-width: 40rem;
}

@media (min-width: 992px) {
  .ftg-auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    align-items: stretch;
    width: 100%;
    max-width: 68rem;
    min-height: 34rem;
  }

  .ftg-auth-side {
    display: block;
    padding: 0;
    min-height: 100%;
  }

  .ftg-auth-visual {
    min-height: 100%;
  }

  .ftg-auth-shell {
    max-width: none;
  }
}

@media (max-width: 991px) {
  .ftg-auth-side {
    display: block;
    margin-bottom: 1.25rem;
    height: auto;
  }

  .ftg-auth-layout {
    display: block;
    width: 100%;
    max-width: 40rem;
  }

  .ftg-auth-visual {
    min-height: 16rem;
    height: 16rem;
  }

  .ftg-auth-shell {
    height: auto;
    max-width: none;
  }

  .ftg-auth-points {
    display: none;
  }
}

@media (max-width: 767px) {
  .ftg-auth-grid.is-2 {
    grid-template-columns: 1fr;
  }

  .ftg-auth-top {
    padding: 0.85rem 1rem;
  }

  .ftg-auth-main {
    padding: 1.25rem 1rem 2rem;
  }

  .ftg-auth-card {
    padding: 1.35rem 1rem 1.15rem;
  }
}
