/* ============================================================
   LOGIN PAGE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  color: #e1e3ef;
  background: #090b18;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  -webkit-font-smoothing: antialiased;
}

/* subtle radial glow behind the card */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(240,176,20,.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(74,120,247,.05) 0%, transparent 55%);
  pointer-events: none;
}

/* ===== CARD ===== */
.login-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #111326;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  padding: 48px 40px 44px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

/* top accent line */
.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f0b014 30%, #4a78f7 70%, transparent);
  border-radius: 0 0 2px 2px;
}

/* ===== LOGO ===== */
.login-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.loginLogo {
  height: 70px;
  width: auto;
  display: block;
  border-radius: 10px;
}

/* ===== HEADER TEXT ===== */
.login-title {
  text-align: center;
  margin-bottom: 32px;
}

.login-title h1 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .3px;
  color: #e1e3ef;
}

.login-title p {
  margin-top: 10px;
  font-size: 13px;
  color: #60617e;
}

/* ===== FORM ===== */
#loginForm {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-field label {
  font-size: 11px;
  font-weight: 700;
  color: #60617e;
  text-transform: uppercase;
  letter-spacing: .45px;
}

.login-field input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.04);
  color: #e1e3ef;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.login-field input::placeholder { color: #44455a; }

.login-field input:focus {
  border-color: rgba(240,176,20,.5);
  box-shadow: 0 0 0 3px rgba(240,176,20,.08);
}

/* ===== SUBMIT ===== */
.login-btn {
  width: 100%;
  padding: 12px;
  margin-top: 4px;
  border: none;
  border-radius: 9px;
  background: #f0b014;
  color: #111;
  font-size: 14px;
  font-weight: 800;
  font-family: inherit;
  letter-spacing: .2px;
  cursor: pointer;
  transition: background .15s, transform .08s;
}

.login-btn:hover  { background: #d9a010; }
.login-btn:active { transform: translateY(1px); }

/* ===== ERROR ===== */
.erro {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(240,68,56,.1);
  border: 1px solid rgba(240,68,56,.25);
  color: #f87171;
  font-size: 13px;
  text-align: center;
  display: none;
}

.erro.visible { display: block; }

/* ===== OTP STEP ===== */
#otpStep {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.otp-info {
  font-size: 13px;
  color: #60617e;
  text-align: center;
  line-height: 1.7;
  margin-bottom: 24px;
}

#otpStep .login-field {
  margin-bottom: 20px;
}

#otpCode {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 10px;
  text-align: center;
  padding: 16px 14px;
}

.otp-trust-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #60617e;
  cursor: pointer;
  margin-bottom: 24px;
}

.otp-trust-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #f0b014;
  cursor: pointer;
  flex-shrink: 0;
}

#otpBtn {
  margin-bottom: 12px;
}

.login-btn-secondary {
  width: 100%;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  background: transparent;
  color: #60617e;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.login-btn-secondary:hover {
  border-color: rgba(255,255,255,.2);
  color: #9094ae;
}

/* ===== FOOTER ===== */
.login-footer {
  margin-top: 28px;
  text-align: center;
  font-size: 11.5px;
  color: #44455a;
}
