/* ============================================================================
   Project Engineer — Auth Page Styles
   File: css/auth.css

   Copyright (c) 2026 Project Engineer. All rights reserved.

   Purpose:
   - Styles for all auth landing pages (email confirmed, password reset, etc.)
   - Consistent with the app's design language (clean, white, minimal)
   - Mobile-first, responsive
============================================================================ */

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  background: #ffffff;
  color: #1f2937;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

/* ===== Card ===== */
.card {
  width: 100%;
  max-width: 480px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
}

/* ===== Brand ===== */
.brand {
  font-size: 28px;
  font-weight: 900;
  color: #111827;
  line-height: 1.15;
  margin-bottom: 24px;
}

/* ===== Status Icon ===== */
.icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  font-size: 26px;
}

.icon--loading  { background: #f0fdfa; color: #0f766e; }
.icon--success  { background: #f0fdfa; color: #0f766e; }
.icon--error    { background: #fef2f2; color: #dc2626; }
.icon--password { background: #f0fdfa; color: #0f766e; }

/* ===== Heading ===== */
.heading {
  font-size: 20px;
  font-weight: 700;
  color: #0f766e;
  margin-bottom: 8px;
}

.heading--error {
  color: #dc2626;
}

/* ===== Body Text ===== */
.body {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 6px;
}

/* ===== Spinner ===== */
.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e5e7eb;
  border-top-color: #0f766e;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== CTA Button ===== */
.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: opacity 0.15s;
}

.btn:hover {
  opacity: 0.88;
}

.btn--primary {
  background: #0f766e;
  color: #ffffff;
}

.btn--secondary {
  background: #111827;
  color: #ffffff;
}

.btn--full {
  width: 100%;
  margin-top: 8px;
}

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

/* ===== Password Form ===== */
.form {
  margin-top: 20px;
  text-align: left;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  color: #111827;
  outline: none;
  transition: border-color 0.15s;
}

.form-input:focus {
  border-color: #0f766e;
}

.form-hint {
  font-size: 13px;
  color: #9ca3af;
  margin-top: 4px;
}

.form-error {
  font-size: 13px;
  color: #dc2626;
  margin-top: 4px;
  display: none;
}

/* ===== Divider ===== */
.divider {
  height: 1px;
  background: #e5e7eb;
  margin: 28px 0;
}

/* ===== Footer ===== */
.logo {
  display: block;
  margin: 0 auto 12px auto;
  width: 100px;
}

.footer-text {
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.5;
}

/* ===== Visibility ===== */
.hidden {
  display: none !important;
}
