/* authStyles.css — Login / signup overlay */

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
}

.auth-card {
  background: var(--bg-primary, #fff);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  margin: 16px;
}

.auth-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary, #222);
  margin: 0 0 4px;
  text-align: center;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-secondary, #717171);
  margin: 0 0 24px;
  text-align: center;
}

/* Tabs */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border, #e0e0e0);
}

.auth-tab {
  flex: 1;
  padding: 10px 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted, #b0b0b0);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.auth-tab.active {
  color: var(--primary, #0057B7);
  border-bottom-color: var(--primary, #0057B7);
}

.auth-tab:hover {
  color: var(--text-primary, #222);
}

/* Error */
.auth-error {
  background: #fef2f2;
  color: #dc2626;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
}

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

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

.auth-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary, #717171);
}

.auth-field input {
  padding: 10px 14px;
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 8px;
  font-size: 15px;
  color: var(--text-primary, #222);
  background: var(--bg-primary, #fff);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-field input:focus {
  border-color: var(--primary, #0057B7);
  box-shadow: 0 0 0 3px rgba(0, 87, 183, 0.15);
}

.auth-submit {
  padding: 12px;
  background: var(--primary, #0057B7);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}

.auth-submit:hover {
  background: var(--primary-hover, #0068D9);
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-verify-msg {
  font-size: 14px;
  color: var(--text-secondary, #717171);
  margin: 0;
}

/* Dark mode */
[data-theme="dark"] .auth-card {
  background: var(--bg-primary, #1a1a2e);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .auth-error {
  background: #451a1a;
  color: #fca5a5;
}

[data-theme="dark"] .auth-field input {
  background: var(--bg-secondary, #16213e);
  border-color: var(--border, #2a2a4a);
  color: var(--text-primary, #e0e0e0);
}

[data-theme="dark"] .auth-field input:focus {
  border-color: var(--primary, #4a9eff);
  box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.2);
}

/* Mobile responsive */
@media (max-width: 480px) {
  .auth-card {
    padding: 28px 20px;
    margin: 12px;
    border-radius: 12px;
  }

  .auth-title {
    font-size: 20px;
  }
}
