/* ===== GLOBAL COLORS (fallbacks) ===== */
:root {
  --primary-color: #ff3c3c;
  --primary-color-hover: #ff5555;
  --secondary-color: #ff7a7a;
  --secondary-color-hover: #ff9a9a;
  --surface-color: rgba(255,255,255,0.7);
  --text-context-color: #111217;
  --background-color: #f5f7fa;
}

/* ===== HEADING ===== */
h2 {
  text-align: center;
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  color: var(--text-context-color);
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--background-color);
  padding: 1rem;
  padding-top: calc(var(--nav-offset, 88px) + 12px) !important;
}

/* ===== FORM CONTAINER ===== */
form.login-form {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  border-radius: 16px;
  background: var(--surface-color);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  border: 1px solid rgba(255,255,255,0.4);
}

/* ===== FORM FIELDS ===== */
form.login-form div {
  margin-bottom: 1.2rem;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-context-color);
  margin-bottom: 6px;
}

input[type="text"],
input[type="password"],
input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--secondary-color);
  border-radius: 10px;
  background: var(--background-color);
  color: var(--text-context-color);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  font-size: 1rem;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

/* ===== BUTTON ===== */
button[type="submit"].action-btn {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.1s ease;
  box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}

button[type="submit"].action-btn:hover {
  background: var(--primary-color-hover);
  transform: translateY(-1px);
}

/* ===== SMALL DETAILS ===== */
form div:last-of-type {
  margin-bottom: 0;
}

.liquid-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
}

/* ===== STATUS CARD (reset done / feedback screens) ===== */
.status-card {
  width: 100%;
  max-width: 460px;
  padding: 2rem;
  border-radius: 18px;
  background: var(--surface-color);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  border: 1px solid rgba(255,255,255,0.45);
  text-align: center;
}

.status-icon {
  width: 62px;
  height: 62px;
  border-radius: 9999px;
  margin: 0 auto 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--primary-color) 16%, white);
  color: var(--primary-color);
  font-size: 1.5rem;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary-color) 34%, transparent);
}

.status-description {
  margin: 0;
  color: var(--text-context-color);
  font-size: 1rem;
  line-height: 1.55;
}

.status-helper-text {
  margin: 0.7rem 0 1.4rem;
  color: color-mix(in srgb, var(--text-context-color) 72%, white);
  font-size: 0.94rem;
  line-height: 1.5;
}

.status-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: center;
}

.action-btn-link {
  width: 100%;
  max-width: 260px;
  padding: 12px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.1s ease;
  box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}

.action-btn-link:hover {
  background: var(--primary-color-hover);
  transform: translateY(-1px);
  color: #fff;
}

.status-secondary-link {
  color: var(--text-context-color);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.status-secondary-link:hover {
  color: var(--primary-color);
}

@media (max-width: 560px) {
  .status-card {
    padding: 1.5rem;
  }
}

/* ===== PAGE-SPECIFIC HARDENING (password reset done) ===== */
body.auth-feedback-page {
  background: radial-gradient(circle at 20% 20%, #ffffff 0%, #f7f8fb 48%, #eef1f6 100%);
}

body.auth-feedback-page .page-content {
  min-height: calc(100vh - var(--nav-offset, 88px) - 92px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-offset, 88px) + 24px) 1rem 2rem;
}

body.auth-feedback-page .status-card--reset-done {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 2.2rem 2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(227, 37, 18, 0.2);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  text-align: center;
}

body.auth-feedback-page .status-card--reset-done .status-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 1rem;
  background: linear-gradient(160deg, rgba(227, 37, 18, 0.2), rgba(227, 37, 18, 0.08));
  color: #b91c1c;
  font-size: 1.7rem;
}

body.auth-feedback-page .status-card--reset-done h2 {
  margin-bottom: 0.95rem;
}

body.auth-feedback-page .status-card--reset-done .status-actions {
  margin-top: 1.3rem;
  gap: 0.8rem;
}

body.auth-feedback-page .status-card--reset-done .action-btn-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: min(100%, 280px);
  padding: 12px 18px;
  border-radius: 9999px;
  text-decoration: none;
  background: #e32512;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(227, 37, 18, 0.2);
}

body.auth-feedback-page .status-card--reset-done .action-btn-link:hover {
  color: #ffffff;
  background: #c41e0f;
}

body.auth-feedback-page .status-card--reset-done .status-secondary-link {
  color: #374151;
  text-decoration: none;
  border-bottom: 1px solid rgba(55, 65, 81, 0.45);
  padding-bottom: 1px;
}

body.auth-feedback-page .status-card--reset-done .status-secondary-link:hover {
  color: #b91c1c;
  border-bottom-color: rgba(185, 28, 28, 0.6);
}

body.auth-feedback-page .status-card--reset-complete,
body.auth-feedback-page .status-card--reset-confirm {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 2.2rem 2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(227, 37, 18, 0.2);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  text-align: center;
}

body.auth-feedback-page .status-card--reset-complete .status-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 1rem;
  background: linear-gradient(160deg, rgba(22, 163, 74, 0.2), rgba(22, 163, 74, 0.08));
  color: #15803d;
  font-size: 1.8rem;
}

body.auth-feedback-page .status-card--reset-complete h2,
body.auth-feedback-page .status-card--reset-confirm h2 {
  margin-bottom: 1rem;
}

body.auth-feedback-page .status-card--reset-complete .status-actions {
  margin-top: 1.3rem;
  gap: 0.8rem;
}

body.auth-feedback-page .status-card--reset-confirm .login-form {
  margin: 0 auto;
  max-width: 430px;
  padding: 1.6rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(227, 37, 18, 0.16);
  text-align: left;
}

body.auth-feedback-page .status-card--reset-confirm .login-form label {
  font-weight: 700;
}

body.auth-feedback-page .status-card--reset-confirm .invalid-feedback {
  margin-top: 0.35rem;
}

@media (max-width: 700px) {
  body.auth-feedback-page .page-content {
    min-height: calc(100vh - var(--nav-offset, 88px) - 70px);
    padding: calc(var(--nav-offset, 88px) + 14px) 0.9rem 1rem;
  }

  body.auth-feedback-page .status-card--reset-done {
    padding: 1.6rem 1.2rem;
  }

  body.auth-feedback-page .status-card--reset-complete,
  body.auth-feedback-page .status-card--reset-confirm {
    padding: 1.6rem 1.2rem;
  }

  body.auth-feedback-page .status-card--reset-confirm .login-form {
    padding: 1.2rem;
  }
}