:root {
  --color-bg: #f0f4f6;
  --color-card: rgba(255, 255, 255, 0.95);
  --color-btn: #155bba;
  --color-btn-hover: #1e70e4;
  --color-text-main: #000000;
  --color-text-muted: #8297b6;

  --radius-card: 10px;
  --radius-input: 10px;

  --transition: 0.22s ease;
  --font-main: "Poppins", sans-serif;
}

/* ---------- Global ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  color: var(--color-text-main);
  font-family: var(--font-main);
}

/* ---------- Wrapper ---------- */

.forgot-wrapper,
.reset-wrapper {
  width: 360px;
  padding: 32px;
  background: var(--color-card);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 25px rgba(90, 127, 146, 0.28);

  display: flex;
  flex-direction: column;
  gap: 16px;
}

.expired-wrapper {
  text-align: center;
}

.expired-wrapper .btn-submit {
  display: block;
  width: 100%;
  text-decoration: none;
  text-align: center;
}

.expired-wrapper .forgot-link {
  margin-top: 6px;
}

/* ---------- Typography ---------- */

.dm-title {
  font-family: "Righteous", sans-serif;
  text-align: center;
}

.forgot-wrapper h2,
.reset-wrapper h2 {
  text-align: center;
}

.note-link,
.note-inbox {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ---------- Form ---------- */

form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  color: var(--color-text-muted);
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 2px solid #638ac0;
  border-radius: var(--radius-input);
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--transition);
}

.form-group input:focus {
  border-color: var(--color-btn);
  outline: none;
}

/* ---------- Password Toggle ---------- */

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 45px;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);

  border: none;
  background: transparent;
  cursor: pointer;

  color: var(--color-text-muted);
  font-size: 1.1rem;
  padding: 0;
}

.toggle-password:hover {
  color: var(--color-btn);
}

/* ---------- Buttons ---------- */

.btn-submit {
  width: 100%;
  padding: 12px;

  border: none;
  border-radius: var(--radius-input);

  background: var(--color-btn);
  color: #fff;

  font-family: inherit;
  font-size: 15px;
  font-weight: 600;

  cursor: pointer;

  transition:
    background-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.btn-submit:hover {
  background: var(--color-btn-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(90, 127, 146, 0.28);
}

.btn-submit:active {
  transform: translateY(0);
  box-shadow: none;
}

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

/* ---------- Messages ---------- */

.message-box {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
}

.message {
  text-align: center;
  color: green;
  font-size: 14px;
}

.error {
  text-align: center;
  color: red;
  font-size: 14px;
}

/* ---------- Links ---------- */

.forgot-link {
  display: block;
  margin-top: 10px;

  text-align: center;
  text-decoration: none;

  color: var(--color-btn);
  font-size: 14px;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* ---------- Responsive ---------- */

@media (max-width: 480px) {
  .forgot-wrapper,
  .reset-wrapper {
    width: 90%;
    padding: 20px;
  }
}