@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;900&family=Barlow:wght@400;500;600&family=DM+Mono:wght@400;500&display=swap');

:root {
  --bg:    #080808;
  --white: #f5f4f0;
  --gray:  #9a9890;
  --dim:   #252422;
  --dim2:  #3a3936;
  --font:  'Barlow Condensed', sans-serif;
  --body:  'Barlow', sans-serif;
  --mono:  'DM Mono', monospace;

  --error-bg: rgba(239,68,68,.10);  --error-bd: rgba(239,68,68,.30);  --error-tx: #f87171;
  --ok-bg:    rgba(74,222,128,.10); --ok-bd:    rgba(74,222,128,.30); --ok-tx:    #4ade80;
  --info-bg:  rgba(255,255,255,.04);--info-bd:  var(--dim2);          --info-tx:  var(--gray);
}

.lfa-wrap {
  min-height: 60vh;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 48px 0;
  font-family: var(--body);
  color: var(--white);
}

/* TABS */
.lfa-tabs {
  display: flex;
  border-bottom: 1px solid var(--dim);
  margin-bottom: 40px;
}
.lfa-tab {
  font-family: var(--font); font-size: 16px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--gray); padding: 12px 24px 12px 0;
  border: none; border-bottom: 2px solid transparent;
  margin-bottom: -1px; background: none; cursor: pointer;
  transition: color .2s, border-color .2s;
}
.lfa-tab.lfa-tab-active { color: var(--white); border-bottom-color: var(--white); }
.lfa-tab:hover { color: var(--white); }

/* PANES */
.lfa-pane { display: none; }
.lfa-pane.lfa-pane-active { display: block; }

/* TITLE */
.lfa-title {
  font-family: var(--font);
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 900; text-transform: uppercase;
  letter-spacing: -.01em; line-height: .95;
  margin: 0 0 8px; color: var(--white);
  white-space: nowrap;
}

/* SUBTITLE */
.lfa-sub { font-size: 13px; color: var(--gray); margin: 0 0 32px; line-height: 1.6; }
.lfa-sub strong { color: var(--white); font-weight: 600; }

/* FORM */
.lfa-form { display: flex; flex-direction: column; gap: 16px; }

/* FIELD */
.lfa-field { display: flex; flex-direction: column; gap: 8px; }
.lfa-field label {
  font-family: var(--mono); font-size: 10px; color: var(--gray);
  letter-spacing: .12em; text-transform: uppercase;
}
.lfa-optional { font-family: var(--mono); font-size: 9px; color: var(--dim2); }

.lfa-field input[type="text"],
.lfa-field input[type="email"],
.lfa-field input[type="password"],
.lfa-field input[type="tel"] {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--dim2);
  color: var(--white);
  padding: 14px 16px;
  font-size: 14px;
  font-family: var(--body);
  outline: none;
  border-radius: 10px;
  -webkit-appearance: none;
  transition: border-color .2s;
}
.lfa-field input:focus { border-color: rgba(255,255,255,.25); }
.lfa-field input::placeholder { color: var(--dim2); }

/* 2-COL */
.lfa-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .lfa-two { grid-template-columns: 1fr; } }

/* FORGOT */
.lfa-forgot { text-align: right; margin-top: -6px; }
.lfa-forgot a {
  font-family: var(--mono); font-size: 11px; color: var(--gray);
  letter-spacing: .06em; text-decoration: none; transition: color .2s;
}
.lfa-forgot a:hover { color: var(--white); }

/* BUTTON */
.lfa-btn {
  width: 100%;
  font-family: var(--font); font-size: 15px; font-weight: 700;
  letter-spacing: .10em; text-transform: uppercase;
  background: var(--white); color: var(--bg);
  border: none; padding: 15px 28px; cursor: pointer;
  text-decoration: none; display: inline-flex;
  align-items: center; justify-content: center;
  transition: background .2s; border-radius: 10px;
  -webkit-appearance: none; margin-top: 4px;
}
.lfa-btn:hover { background: var(--gray); color: var(--bg); text-decoration: none; }

/* SWITCH */
.lfa-switch { text-align: center; font-size: 13px; color: var(--gray); margin-top: 20px; }
.lfa-switch a { color: var(--white); text-decoration: none; }
.lfa-switch a:hover { text-decoration: underline; }

/* ALERTS */
.lfa-alert {
  padding: 12px 16px; font-size: 13px; margin-bottom: 4px;
  line-height: 1.5; border-radius: 10px;
}
.lfa-alert.error   { background: var(--error-bg); border: 1px solid var(--error-bd); color: var(--error-tx); }
.lfa-alert.success { background: var(--ok-bg);    border: 1px solid var(--ok-bd);    color: var(--ok-tx); }
.lfa-alert.info    { background: var(--info-bg);  border: 1px solid var(--info-bd);  color: var(--info-tx); }


/* OTP */
.lfa-otp-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 140px;
  gap: 12px;
  align-items: stretch;
}
.lfa-otp-btn {
  width: 100%;
  border: 1px solid var(--dim2);
  background: rgba(255,255,255,.06);
  color: var(--white);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0 16px;
  transition: border-color .2s, background .2s, opacity .2s;
}
.lfa-otp-btn:hover:not(:disabled) {
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.10);
}
.lfa-otp-btn:disabled {
  opacity: .7;
  cursor: not-allowed;
}
.lfa-otp-help {
  margin-top: 8px;
  color: var(--gray);
  font-size: 12px;
  line-height: 1.5;
}
.lfa-otp-feedback {
  min-height: 20px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--gray);
}
.lfa-otp-feedback.is-success { color: var(--ok-tx); }
.lfa-otp-feedback.is-error { color: var(--error-tx); }

@media (max-width: 480px) {
  .lfa-otp-row {
    grid-template-columns: 1fr;
  }
  .lfa-otp-btn {
    min-height: 48px;
  }
}
