:root {
  --navy-950: #0a1628;
  --navy-900: #0e1f3d;
  --navy-850: #122549;
  --navy-800: #173064;
  --gold-300: #e6c878;
  --gold-500: #c9a227;
  --gold-600: #ad8720;
  --bg: #f6f7fa;
  --ink-900: #111726;
  --ink-700: #333a4d;
  --ink-600: #5b6072;
  --ink-400: #9297a8;
  --line: #e8eaf0;
  --danger: #d8433b;
  --danger-bg: #fbeae9;
  --success: #1e9d63;
  --success-bg: #e8f7ef;
  --font-display: "Fraunces", serif;
  --font-body: "Inter", sans-serif;
  --shadow-lg: 0 20px 45px -12px rgba(10, 22, 40, 0.22);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font-family: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.reset-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

.reset-brand {
  position: relative;
  overflow: hidden;
  padding: 56px 64px;
  color: #fff;
  background: linear-gradient(160deg, var(--navy-950), var(--navy-900) 56%, var(--navy-850));
}

.reset-brand::after {
  content: "";
  position: absolute;
  top: -170px;
  right: -150px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.28), rgba(201, 162, 39, 0) 70%);
  pointer-events: none;
}

.reset-brand__content {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  animation: fadeUp 0.5s var(--ease);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-300);
  flex-shrink: 0;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-mark--large {
  width: 52px;
  height: 52px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

.brand-text span {
  font-size: 11px;
  color: var(--gold-300);
  font-weight: 700;
}

.reset-brand__message {
  max-width: 420px;
}

.reset-brand__message h2 {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 18px;
  font-weight: 600;
}

.reset-brand__message p,
.reset-brand__footer {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  font-size: 14px;
}

.reset-brand__footer {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12.5px;
}

.reset-panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
}

.reset-card {
  width: 100%;
  max-width: 430px;
  padding: 40px 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.45s var(--ease);
}

.mobile-logo {
  display: none;
  justify-content: center;
  margin-bottom: 22px;
}

.reset-card h1 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  text-align: center;
  color: var(--navy-950);
  margin-bottom: 10px;
}

.reset-subtitle {
  color: var(--ink-600);
  font-size: 13.5px;
  line-height: 1.65;
  text-align: center;
  margin-bottom: 30px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.field label {
  color: var(--ink-700);
  font-size: 12.5px;
  font-weight: 600;
}

.field-control {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcfcfd;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field-control:focus-within {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.14);
}

.field-control.is-invalid {
  border-color: var(--danger);
}

.field-control i {
  color: var(--ink-400);
  font-size: 14px;
}

.field-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 12px 0;
  color: var(--ink-900);
  font-size: 13.5px;
}

.field-error {
  min-height: 15px;
  display: block;
  color: var(--danger);
  font-size: 12px;
}

.primary-button {
  position: relative;
  width: 100%;
  min-height: 45px;
  padding: 13px 20px;
  border-radius: 12px;
  background: var(--navy-900);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}

.primary-button:hover {
  background: var(--navy-800);
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.75;
  transform: none;
}

.button-loading {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
}

.primary-button.is-loading .button-text {
  visibility: hidden;
}

.primary-button.is-loading .button-loading {
  display: flex;
}

.form-message {
  margin-top: 18px;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  border-radius: 10px;
  color: var(--danger);
  background: var(--danger-bg);
  font-size: 12.5px;
  text-align: center;
  line-height: 1.45;
  transition: max-height 0.25s var(--ease), padding 0.25s var(--ease);
}

.form-message.is-visible {
  padding: 11px 14px;
  max-height: 120px;
}

.form-message.is-success {
  color: var(--success);
  background: var(--success-bg);
}

.back-link {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px auto 0;
  color: var(--navy-800);
  font-size: 12.5px;
  font-weight: 700;
}

.back-link:hover {
  color: var(--gold-600);
}

.back-link:focus-visible,
.primary-button:focus-visible,
.field-control input:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .reset-brand {
    display: none;
  }

  .mobile-logo {
    display: flex;
  }
}

@media (max-width: 460px) {
  .reset-panel {
    padding: 28px 18px;
  }

  .reset-card {
    padding: 32px 22px;
  }
}
