/* ═══════════════════════════════════════
   Auth - Login / Register (shared)
   ═══════════════════════════════════════ */

.auth-main {
  min-height: 100vh;
  display: flex !important;
  flex-direction: column !important;
  background: #fafbfc;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  grid-template-columns: unset !important;
  gap: unset !important;
  align-items: unset !important;
}

/* ── Login Card ── */
.auth-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.auth-login::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.auth-login::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.auth-login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 48px 40px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.02);
  position: relative;
  z-index: 1;
}

.auth-login-brand {
  text-align: center;
  margin-bottom: 36px;
}

.auth-login-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.auth-login-brand h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.auth-login-brand p {
  font-size: 0.92rem;
  color: #6b7280;
  margin: 0;
}

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

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

.auth-field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
}

.auth-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 0.92rem;
  background: #fff;
  color: #111827;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.auth-field input::placeholder {
  color: #9ca3af;
}

.auth-field input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.auth-form-error {
  background: #fef2f2;
  color: #dc2626;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  border: 1px solid #fecaca;
}

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  margin-top: 4px;
}

.auth-submit:hover {
  background: #1f2937;
}

.auth-submit:active {
  transform: scale(0.99);
}

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

.spinner-icon {
  animation: authSpin 0.8s linear infinite;
}

@keyframes authSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.auth-login-footer {
  margin-top: 24px;
  text-align: center;
}

.auth-link {
  display: inline;
  color: #6b7280;
  text-decoration: none;
  font-size: 0.88rem;
}

.auth-link strong {
  color: #6366f1;
  font-weight: 600;
}

.auth-link:hover strong {
  text-decoration: underline;
}

.auth-back {
  margin-top: 16px;
  text-align: center;
  border-top: 1px solid #f3f4f6;
  padding-top: 16px;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 400;
  transition: color 0.15s;
}

.auth-back-link:hover {
  color: #111827;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .auth-login-card {
    padding: 36px 24px;
  }

  .auth-login-brand h1 {
    font-size: 1.3rem;
  }
}
