/* Forgot-password page — supplemental styles. Base tokens from main.css. */

body { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; }

/* Legacy glow div — hidden in new design */
.glow { display: none; }

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  animation: up 0.45s var(--smooth) both;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}
@keyframes up { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }

.logo {
  display: flex; align-items: center; justify-content: center;
  gap: 0.6rem; margin-bottom: 1.75rem;
  text-decoration: none; color: var(--text);
}
.logo-icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border-bright);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; color: var(--text);
}
.logo-text {
  font-size: 1.1rem; font-weight: 800;
  letter-spacing: -0.03em; color: var(--text);
}

.page-icon {
  width: 56px; height: 56px; border-radius: 15px;
  margin: 0 auto 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--text);
}

h1   { font-size: 1.3rem; font-weight: 700; text-align: center; margin-bottom: 0.4rem; }
.sub { color: var(--text-secondary); font-size: 0.85rem; text-align: center; line-height: 1.6; margin-bottom: 1.75rem; }

.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.45rem; }

.inp-wrap { position: relative; display: flex; align-items: center; }
.inp-ico {
  position: absolute; left: 1rem;
  color: rgba(255,255,255,0.3); font-size: 0.8rem;
  pointer-events: none; z-index: 1;
}
.inp-wrap input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 1rem 0.8rem 2.6rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.inp-wrap input::placeholder { color: rgba(255,255,255,0.2); }
.inp-wrap input:focus {
  border-color: var(--border-bright);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1.5rem;
  margin-top: 0.5rem;
  background: #ffffff;
  color: #0a0a0a;
  border: none;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-submit:hover { background: #e8e8e8; }
.btn-submit:active { transform: scale(0.98); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.alert { display: none; padding: 0.875rem 1rem; border-radius: 10px; font-size: 0.85rem; font-weight: 500; margin-bottom: 1rem; align-items: center; gap: 0.5rem; }
.alert.err  { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.25);  color: #f87171; }
.alert.succ { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2);   color: #4ade80; }
.alert.show { display: flex; }

.success-state { display: none; text-align: center; }
.success-state .s-icon {
  width: 64px; height: 64px; border-radius: 50%;
  margin: 0 auto 1.25rem;
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.85rem; color: #4ade80;
}
.success-state h2 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.success-state p  { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.65; }

.back-link { margin-top: 1.5rem; text-align: center; font-size: 0.83rem; color: var(--text-secondary); }
.back-link a { color: var(--text); text-decoration: none; font-weight: 600; }
.back-link a:hover { opacity: 0.75; }

@media (max-width: 420px) { .card { padding: 2rem 1.25rem; border-radius: 18px; } }
