/* ═══════════════════════════════════════════════════════════════════════
   BIZZNEZZ Auth Pages – Light / Dark themed
   ═══════════════════════════════════════════════════════════════════════ */

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

/* ── Themed backgrounds ── */
[data-theme="dark"] .auth-container {
  background:
    radial-gradient(circle at 20% 30%, rgba(15, 118, 110, 0.18), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.12), transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(15, 118, 110, 0.10), transparent 50%),
    linear-gradient(160deg, #0b1020 0%, #101828 55%, #0c111d 100%);
}

[data-theme="light"] .auth-container {
  background:
    radial-gradient(circle at 20% 30%, rgba(15, 118, 110, 0.08), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.06), transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(15, 118, 110, 0.05), transparent 50%),
    linear-gradient(160deg, #f8fafb 0%, #f0f4f8 55%, #ffffff 100%);
}

/* ── Card ── */
.auth-card {
  border-radius: calc(var(--radius) + 4px);
  padding: 48px 44px;
  width: 100%;
  max-width: 440px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: authFadeIn 0.4s ease both;
}

[data-theme="dark"] .auth-card {
  background: rgba(16, 24, 40, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 24px 64px rgba(0, 0, 0, 0.35),
    0 8px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .auth-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 118, 110, 0.10);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.03),
    0 24px 64px rgba(15, 23, 42, 0.08),
    0 8px 20px rgba(15, 23, 42, 0.04);
}

@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Logo ── */
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-family: var(--font-display);
  letter-spacing: 0.03em;
}

.auth-logo-img {
  width: 180px;
  height: auto;
}

.auth-logo-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

/* ── Subtitle ── */
.auth-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 15px;
  line-height: 1.5;
}

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

.auth-form .form-group {
  margin-bottom: 0;
}

.auth-form .label {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.auth-form .input {
  background: var(--control-bg);
  border: 1px solid var(--control-border);
  color: var(--control-text);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form .input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
  outline: none;
}

.auth-form .input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

/* ── Submit Button ── */
.auth-submit-btn {
  width: 100%;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-submit-btn:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.25);
}

.auth-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

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

/* ── Focus ring ── */
.auth-submit-btn:focus-visible,
.auth-back-btn:focus-visible,
.auth-link a:focus-visible,
.auth-forgot a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.25);
  border-radius: 8px;
}

/* ── Error ── */
.auth-error {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  text-align: center;
  line-height: 1.5;
}

[data-theme="dark"] .auth-error {
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

[data-theme="light"] .auth-error {
  background: rgba(239, 68, 68, 0.06);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.18);
}

/* ── Links ── */
.auth-link {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 24px;
}

.auth-link--spaced {
  margin-top: 24px;
}

.auth-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

[data-theme="dark"] .auth-link a {
  color: var(--accent);
}

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

/* ── Helper text ── */
.auth-helper-text {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ── Success state ── */
.auth-success {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.auth-success-icon {
  display: block;
  margin: 0 auto 16px;
  color: var(--primary);
}

.auth-success-text {
  text-align: center;
  color: var(--text-secondary);
  line-height: 1.6;
}

.auth-success-text--mb24 {
  margin-bottom: 24px;
}

.auth-success-strong {
  color: var(--text-primary);
  font-weight: 600;
}

.auth-success-cta {
  margin-top: 24px;
}

/* ── Back button ── */
.auth-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 0;
  margin-bottom: 24px;
  transition: color 0.2s, transform 0.15s;
  font-family: inherit;
}

.auth-back-btn:hover {
  color: var(--primary);
  transform: translateX(-2px);
}

.auth-back-btn svg {
  flex-shrink: 0;
}

/* ── Forgot password ── */
.auth-forgot {
  text-align: right;
  margin-top: -8px;
}

.auth-forgot a {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-forgot a:hover {
  color: var(--primary);
  text-decoration: underline;
}

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

  .auth-logo-img {
    width: 140px;
  }
}

/* ── Theme toggle on auth pages ── */
.auth-theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  font-family: inherit;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  z-index: 100;
}

[data-theme="dark"] .auth-theme-toggle {
  background: rgba(255, 255, 255, 0.08);
  color: #d0d5dd;
}

[data-theme="dark"] .auth-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #f2f4f7;
}

[data-theme="light"] .auth-theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  color: #475467;
}

[data-theme="light"] .auth-theme-toggle:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #101828;
}

.auth-theme-toggle svg {
  width: 20px;
  height: 20px;
}
