/* ============================================================
   Home8 — Auth Pages Stylesheet
   Shared by: login, register, forgot-password, reset-password,
              verify-email
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Comfortaa', sans-serif;
  background: #f0f2f5;
  color: #1e2530;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Layout ─────────────────────────────────────────────────── */
.auth-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  background: #ffffff;
  border: 1px solid #e4e3dd;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
}

/* ── Logo ───────────────────────────────────────────────────── */
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
  text-decoration: none;
}
.auth-logo svg { display: block; }
.auth-logo-name {
  font-family: 'Comfortaa', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #D95F3B;
  line-height: 1;
}

/* ── Headings ───────────────────────────────────────────────── */
.auth-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e2530;
  margin-bottom: 6px;
  text-align: center;
}
.auth-sub {
  font-size: .875rem;
  color: #6b7280;
  font-weight: 400;
  text-align: center;
  margin-bottom: 28px;
}

/* ── Form ───────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 6px;
  letter-spacing: .02em;
}
.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d0d5de;
  border-radius: 8px;
  font-family: 'Comfortaa', sans-serif;
  font-size: .9rem;
  color: #1e2530;
  background: #ffffff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus {
  border-color: #D95F3B;
  box-shadow: 0 0 0 3px rgba(217,95,59,.12);
}
.form-input::placeholder { color: #b0b8c4; }
.form-input.error { border-color: #ef4444; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  width: 100%;
  padding: 12px 20px;
  background: #D95F3B;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: 'Comfortaa', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
  margin-top: 8px;
}
.btn-primary:hover {
  background: #c4522f;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(217,95,59,.3);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.btn-ghost {
  width: 100%;
  padding: 11px 20px;
  background: transparent;
  color: #6b7280;
  border: 1px solid #d0d5de;
  border-radius: 8px;
  font-family: 'Comfortaa', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  margin-top: 8px;
  text-align: center;
  display: block;
  text-decoration: none;
}
.btn-ghost:hover { background: #f4f5f7; color: #1e2530; border-color: #b0b8c4; }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
  padding: 11px 14px;
  border-radius: 8px;
  font-size: .875rem;
  margin-bottom: 18px;
  border: 1px solid;
}
.alert-error   { background: #fff5f5; border-color: #fca5a5; color: #991b1b; }
.alert-success { background: #f0fdf4; border-color: #86efac; color: #166534; }
.alert-info    { background: #eff6ff; border-color: #93c5fd; color: #1e40af; }

/* ── Field error ─────────────────────────────────────────────── */
.field-error {
  font-size: .775rem;
  color: #ef4444;
  margin-top: 4px;
  display: block;
}

/* ── Divider ─────────────────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #d0d5de;
  font-size: .8rem;
  color: #9aa3b0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e4e3dd;
}

/* ── Footer links ───────────────────────────────────────────── */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: .85rem;
  color: #6b7280;
}
.auth-footer a {
  color: #D95F3B;
  text-decoration: none;
  font-weight: 600;
}
.auth-footer a:hover { text-decoration: underline; }

.forgot-link {
  display: block;
  text-align: right;
  font-size: .8rem;
  color: #9aa3b0;
  text-decoration: none;
  margin-top: -10px;
  margin-bottom: 16px;
}
.forgot-link:hover { color: #D95F3B; }

/* ── Password strength ──────────────────────────────────────── */
.strength-bar {
  height: 4px;
  border-radius: 2px;
  background: #e4e3dd;
  margin-top: 8px;
  overflow: hidden;
}
.strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: width .3s, background .3s;
  width: 0%;
}

/* ── Page footer ─────────────────────────────────────────────── */
.page-footer {
  text-align: center;
  padding: 20px;
  font-size: .78rem;
  color: #9aa3b0;
}
.page-footer a { color: #9aa3b0; text-decoration: none; }
.page-footer a:hover { color: #D95F3B; }
