/* ═══════════════════════════════════════════
   SafeHer Path — auth.css
   Login / Signup screen styling
   ═══════════════════════════════════════════ */

#auth-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at 20% 20%, #0f1f1a 0%, #080C10 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff, 'DM Sans', sans-serif);
}
#auth-screen.hidden { display: none; }

.auth-card {
  width: 380px;
  max-width: 92vw;
  background: #0e1318;
  border: 1px solid #ffffff14;
  border-radius: 22px;
  padding: 34px 30px;
  box-shadow: 0 20px 60px #00000090;
  animation: authPop .35s ease;
}
@keyframes authPop { from { opacity:0; transform: translateY(14px) scale(.97); } to { opacity:1; transform: translateY(0) scale(1); } }

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 6px;
}
.auth-logo-ico {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, #1DB974, #0ea85a);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 22px #1DB97440;
}
.auth-logo-ico svg { width: 22px; height: 22px; fill: #fff; }
.auth-title {
  font-family: var(--fd, 'Syne', sans-serif);
  font-size: 22px; font-weight: 800; color: #e8edf2;
}
.auth-sub {
  text-align: center;
  font-size: 12px;
  color: #7a90a4;
  margin-bottom: 26px;
  letter-spacing: .2px;
}

.auth-tabs {
  display: flex;
  background: #141b22;
  border: 1px solid #ffffff14;
  border-radius: 11px;
  padding: 4px;
  margin-bottom: 22px;
}
.auth-tab {
  flex: 1;
  text-align: center;
  padding: 9px 0;
  font-size: 13px;
  font-weight: 600;
  color: #7a90a4;
  border-radius: 8px;
  cursor: pointer;
  transition: all .18s;
  user-select: none;
}
.auth-tab.active {
  background: #1DB97420;
  color: #1DB974;
  box-shadow: inset 0 0 0 1px #1DB97440;
}

.auth-form { display: none; flex-direction: column; gap: 12px; }
.auth-form.active { display: flex; }

.auth-field-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: #7a90a4;
  margin-bottom: 5px;
}
.auth-input {
  width: 100%;
  background: #141b22;
  border: 1px solid #ffffff14;
  border-radius: 10px;
  padding: 11px 13px;
  color: #e8edf2;
  font-family: var(--ff, 'DM Sans', sans-serif);
  font-size: 13px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.auth-input:focus { border-color: #1DB974; box-shadow: 0 0 0 3px #1DB97428; }
.auth-input::placeholder { color: #2e4052; }

.auth-error {
  display: none;
  background: #E8453C18;
  border: 1px solid #E8453C40;
  color: #E8453C;
  font-size: 12px;
  padding: 9px 12px;
  border-radius: 9px;
  margin-top: 2px;
}
.auth-error.show { display: block; }

.auth-btn {
  width: 100%;
  background: #1DB974;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: var(--ff, 'DM Sans', sans-serif);
  font-size: 14px;
  font-weight: 700;
  padding: 12px;
  cursor: pointer;
  margin-top: 6px;
  transition: all .18s;
}
.auth-btn:hover { background: #19a864; box-shadow: 0 6px 22px #1DB97440; }
.auth-btn:active { transform: scale(.98); }

.auth-foot {
  text-align: center;
  font-size: 11px;
  color: #2e4052;
  margin-top: 20px;
  line-height: 1.6;
}

.auth-user-pill {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0e1318;
  border: 1px solid #ffffff18;
  border-radius: 20px;
  padding: 6px 14px 6px 6px;
  box-shadow: 0 4px 16px #00000050;
}
.auth-user-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #4A80F5, #7B5CF5);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
  font-family: var(--fd, 'Syne', sans-serif);
}
.auth-user-name { font-size: 12px; color: #e8edf2; font-weight: 500; }
.auth-logout-btn {
  background: none; border: none; color: #7a90a4;
  font-size: 11px; cursor: pointer; margin-left: 4px;
  text-decoration: underline; font-family: var(--ff, 'DM Sans', sans-serif);
}
.auth-logout-btn:hover { color: #E8453C; }
