/* auth.css — Login / Register page styles */

.auth-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.auth-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.auth-glow-1 {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(77, 107, 254, 0.12) 0%, transparent 70%);
}

.auth-glow-2 {
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.06) 0%, transparent 70%);
}

.auth-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
}

.auth-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--fg-primary);
  text-decoration: none;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-nav-link {
  font-size: 0.9rem;
  color: var(--fg-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.auth-nav-link:hover { color: var(--fg-primary); }
.auth-nav-link strong { color: var(--accent); }

.auth-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
}

.auth-card-header {
  margin-bottom: 36px;
}

.auth-card-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.auth-card-header p {
  color: var(--fg-secondary);
  font-size: 0.95rem;
}

.auth-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg-secondary);
  letter-spacing: 0.3px;
}

.form-group input {
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  color: var(--fg-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder { color: var(--fg-muted); }

.form-group input:focus {
  border-color: rgba(77, 107, 254, 0.5);
  box-shadow: 0 0 0 3px rgba(77, 107, 254, 0.1);
}

.auth-submit {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  box-shadow: 0 0 24px rgba(77, 107, 254, 0.25);
}
.auth-submit:hover:not(:disabled) {
  background: #3d5bf0;
  transform: translateY(-1px);
  box-shadow: 0 4px 32px rgba(77, 107, 254, 0.4);
}
.auth-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.btn-loader svg {
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.auth-terms {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-align: center;
  line-height: 1.6;
}
.auth-terms a {
  color: var(--fg-secondary);
  text-decoration: underline;
}

@media (max-width: 480px) {
  .auth-nav { padding: 20px 20px; }
  .auth-card { padding: 32px 24px; }
  .auth-card-header h1 { font-size: 1.6rem; }
}
