/* ── TriPrep – Shared Auth Styles ──────────────────────────────── */

/* ── Nav Auth Component ─────────────────────────────────────────── */
.nav-auth {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-auth-login {
  background: var(--teal, #0DCFBD);
  color: #0a0c10;
  border: none;
  border-radius: 8px;
  padding: .42rem 1.05rem;
  font-family: inherit;
  font-weight: 700;
  font-size: .875rem;
  cursor: pointer;
  transition: opacity .15s;
  white-space: nowrap;
}
.nav-auth-login:hover { opacity: .82; }

.nav-auth-user {
  display: flex;
  align-items: center;
}

.nav-avatar-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal, #0DCFBD);
  color: #0a0c10;
  border: none;
  font-weight: 800;
  font-size: .95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .15s;
  line-height: 1;
  flex-shrink: 0;
}
.nav-avatar-btn:hover { opacity: .82; }

.nav-auth-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #0D1426;
  border: 1px solid #1E2D4A;
  border-radius: 12px;
  min-width: 210px;
  padding: .5rem;
  z-index: 9999;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .55);
}
.nav-auth-dropdown.open { display: block; }

.nav-auth-email-display {
  padding: .45rem .7rem;
  font-size: .78rem;
  color: #64748B;
  border-bottom: 1px solid #1E2D4A;
  margin-bottom: .3rem;
  word-break: break-all;
}

.nav-auth-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: .48rem .7rem;
  border-radius: 7px;
  font-size: .875rem;
  font-family: inherit;
  color: #F1F5F9;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.nav-auth-item:hover { background: rgba(255, 255, 255, .065); }
.nav-auth-logout { color: #EF4444 !important; }

/* ── OTP Modal ──────────────────────────────────────────────────── */
.auth-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.auth-overlay.open { display: flex; }

.auth-modal {
  background: #0D1426;
  border: 1px solid #1E2D4A;
  border-radius: 18px;
  padding: 2rem 2rem 1.75rem;
  width: min(430px, 95vw);
  position: relative;
  animation: auth-slide-in .18s ease;
}
@keyframes auth-slide-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #64748B;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.auth-modal-close:hover { color: #F1F5F9; }

.auth-modal-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.55rem;
  margin-bottom: .3rem;
  letter-spacing: 2px;
}
.auth-modal-logo span { color: #0DCFBD; }

.auth-modal-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: .5px;
  margin-bottom: .25rem;
}

.auth-modal-sub {
  font-size: .84rem;
  color: #64748B;
  margin-bottom: 1.4rem;
  line-height: 1.5;
}

.auth-step { display: none; }
.auth-step.active { display: block; }

.auth-field-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: #94A3B8;
  margin-bottom: .35rem;
}

.auth-input {
  width: 100%;
  padding: .65rem .9rem;
  background: #111827;
  border: 1px solid #1E2D4A;
  border-radius: 8px;
  color: #F1F5F9;
  font-family: inherit;
  font-size: .95rem;
  outline: none;
  transition: border-color .15s;
}
.auth-input:focus { border-color: #0DCFBD; }

.auth-error {
  color: #EF4444;
  font-size: .82rem;
  margin-top: .4rem;
  min-height: 1.1rem;
}

.auth-btn {
  width: 100%;
  padding: .7rem;
  background: #0DCFBD;
  color: #0a0c10;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  margin-top: .9rem;
  transition: opacity .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
}
.auth-btn:hover { opacity: .85; }
.auth-btn:disabled { opacity: .45; cursor: not-allowed; }

.auth-otp-hint {
  font-size: .875rem;
  color: #94A3B8;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.auth-otp-boxes {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin: 1rem 0;
}
.auth-otp-box {
  width: 48px;
  height: 58px;
  text-align: center;
  font-size: 1.65rem;
  font-weight: 700;
  background: #111827;
  border: 1px solid #1E2D4A;
  border-radius: 8px;
  color: #F1F5F9;
  outline: none;
  transition: border-color .15s;
  -moz-appearance: textfield;
}
.auth-otp-box::-webkit-outer-spin-button,
.auth-otp-box::-webkit-inner-spin-button { -webkit-appearance: none; }
.auth-otp-box:focus { border-color: #0DCFBD; }

.auth-resend {
  text-align: center;
  font-size: .82rem;
  color: #64748B;
  margin-top: .75rem;
}
.auth-resend-btn {
  background: none;
  border: none;
  color: #0DCFBD;
  font-size: .82rem;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
  padding: 0;
}
.auth-resend-btn:disabled { color: #64748B; cursor: not-allowed; text-decoration: none; }

.auth-success-icon {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: .6rem;
}
.auth-success-title {
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: .45rem;
}
.auth-success-sub {
  font-size: .875rem;
  color: #94A3B8;
  text-align: center;
}

.auth-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(10, 12, 16, .3);
  border-top-color: #0a0c10;
  border-radius: 50%;
  animation: auth-spin .6s linear infinite;
  display: none;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }

.auth-footer {
  text-align: center;
  font-size: .78rem;
  color: #64748B;
  margin-top: 1rem;
}
