:root {
  --bg-1: #07111f;
  --bg-2: #10263f;
  --panel: rgba(255, 255, 255, 0.96);
  --text: #102235;
  --muted: #5e6f84;
  --accent: #1d5ea8;
  --accent-strong: #174f8b;
  --border: #d8e3ef;
  --success: #e7f8ee;
  --success-border: #89d2a6;
  --error: #fdecec;
  --error-border: #e39a9a;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(33, 95, 168, 0.26), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
}

.recover-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(360px, 0.95fr);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 56px;
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.18), rgba(7, 17, 31, 0.72)),
    url('../img/login/image-left.png') center/cover no-repeat;
}

.hero-panel__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10, 28, 48, 0.42), rgba(20, 72, 122, 0.18)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 24%);
}

.hero-panel__content {
  position: relative;
  z-index: 1;
  max-width: 520px;
  color: #fff;
}

.brand-logo {
  display: block;
  width: min(260px, 70%);
  margin-bottom: 28px;
}

.hero-panel h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-panel p {
  margin: 0;
  max-width: 38ch;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

.form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.05)),
    linear-gradient(180deg, #f8fbff, #edf4fb);
}

.form-card {
  width: min(100%, 560px);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(6, 18, 35, 0.16);
  padding: 34px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.back-link:hover {
  color: var(--accent-strong);
}

.message {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 0.98rem;
  line-height: 1.5;
}

.message--success {
  background: var(--success);
  border: 1px solid var(--success-border);
}

.message--error {
  background: var(--error);
  border: 1px solid var(--error-border);
}

.recover-form {
  display: grid;
  gap: 14px;
}

.recover-form label {
  font-weight: 700;
  color: var(--text);
}

.recover-form input[type="text"],
.recover-form input[type="email"] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.recover-form input[type="text"]:focus,
.recover-form input[type="email"]:focus {
  border-color: rgba(29, 94, 168, 0.6);
  box-shadow: 0 0 0 4px rgba(29, 94, 168, 0.12);
}

.consent-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

.consent-row input {
  margin-top: 4px;
}

.recover-form button {
  margin-top: 10px;
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  box-shadow: 0 16px 30px rgba(29, 94, 168, 0.24);
}

.recover-form button:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.help-box {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f4f8fd;
  border: 1px solid var(--border);
  color: var(--muted);
  line-height: 1.5;
}

.honeypot-input {
  display: none;
}

@media (max-width: 960px) {
  .recover-page {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 320px;
    padding: 32px;
  }
}

@media (max-width: 640px) {
  .form-panel {
    padding: 18px;
  }

  .form-card {
    padding: 24px;
    border-radius: 22px;
  }

  .hero-panel {
    padding: 24px;
  }
}
