/* ======================================
   AMERICAN-CREST BANK
   Forgot Password Styles
====================================== */

:root {
  --bg: #0b1220;
  --card: #101b2d;
  --input-bg: #0c1727;
  --primary: #0789e8;
  --primary-hover: #0670c2;
  --text: #f3f7fc;
  --muted: #98a9bf;
  --border: rgba(255, 255, 255, 0.09);
  --danger: #ff7474;
  --success: #35c99a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  background: 
    radial-gradient(ellipse at top left, #102d4b 0%, transparent 45%),
    var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.page-wrapper {
  width: 100%;
  max-width: 440px;
}

/* Card */
.forgot-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

/* Logo */
.logo-area {
  text-align: center;
  margin-bottom: 28px;
}

.logo-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, #0875cf, #20a5ff);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: white;
}

.logo-area h1 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* Titles */
h2 {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
}

.subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
  margin-bottom: 30px;
}

/* Form */
.form-group {
  margin-bottom: 22px;
}

label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.input-wrap {
  position: relative;
}

.input-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #7489a4;
  font-size: 14px;
}

.input-wrap input {
  width: 100%;
  height: 50px;
  padding: 0 16px 0 42px;
  background: var(--input-bg);
  border: 1px solid #293a51;
  border-radius: 11px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: 0.25s ease;
}

.input-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(7, 137, 232, 0.18);
}

.input-wrap input.invalid {
  border-color: var(--danger);
}

.field-error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--danger);
  min-height: 16px;
}

/* Button */
.btn-primary {
  width: 100%;
  height: 50px;
  background: linear-gradient(120deg, #087bdb, #079cf3);
  border: none;
  border-radius: 11px;
  color: white;
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: 0 8px 22px rgba(7, 137, 232, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(7, 137, 232, 0.35);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Success Box */
.success-box {
  text-align: center;
  padding: 10px 0 5px;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  background: rgba(53, 201, 154, 0.12);
  border: 1px solid rgba(53, 201, 154, 0.3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: var(--success);
}

.success-box h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.success-box p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.success-box strong {
  color: var(--text);
}

.success-box .note {
  font-size: 12px;
  margin-top: 12px;
  opacity: 0.8;
}

/* Back link */
.back-link {
  text-align: center;
  margin-top: 28px;
}

.back-link a {
  color: var(--muted);
  font-size: 13.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: 0.2s;
}

.back-link a:hover {
  color: #55bdff;
}

/* Footer */
.footer-note {
  text-align: center;
  margin-top: 22px;
  font-size: 11.5px;
  color: #7a8ba3;
}

/* Mobile */
@media (max-width: 480px) {
  .forgot-card {
    padding: 32px 22px;
  }

  h2 {
    font-size: 22px;
  }
}