@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Nunito:wght@400;500;600;700;800&display=swap");

:root {
  --vhs-primary: #8b5cf6;
  --vhs-primary-dark: #6d4ab1;
  --vhs-primary-light: #b79cf9;
  --vhs-text: #3b2d4a;
  --vhs-muted: #7a6a8f;
  --vhs-border: rgba(109, 74, 177, 0.16);
  --vhs-border-strong: rgba(109, 74, 177, 0.25);
  --vhs-surface: #fffdfe;
  --vhs-surface-soft: #f5eefc;
  --vhs-danger: #ef4444;
}

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

html {
  scroll-behavior: smooth;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  font-family: "Nunito", "Segoe UI", sans-serif;
  color: var(--vhs-text);
  background: linear-gradient(180deg, #fdf9ff 0%, #f3ecfa 100%);
  -webkit-font-smoothing: antialiased;
}

.reset-shell {
  width: 100%;
  max-width: 34rem;
}

.reset-card {
  background: #ffffff;
  border: 1px solid rgba(109, 74, 177, 0.12);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 12px 32px rgba(109, 74, 177, 0.12);
}

.reset-header {
  text-align: center;
  margin-bottom: 1rem;
}

.reset-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vhs-primary-dark);
}

.reset-card h1 {
  margin: 0;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--vhs-text);
}

.reset-subtitle {
  margin: 0.5rem 0 0;
  color: var(--vhs-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.reset-status {
  margin: 1rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  background: var(--vhs-surface-soft);
  color: #4a3a5e;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-line;
}

.reset-status:empty {
  display: none;
}

.reset-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(109, 74, 177, 0.1);
}

.reset-form:first-of-type {
  margin-top: 0.75rem;
  padding-top: 0;
  border-top: 0;
}

.reset-form h2 {
  margin: 0;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.15rem;
  color: var(--vhs-text);
}

.form-group {
  display: grid;
  gap: 0.45rem;
}

.form-group label,
.field-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--vhs-text);
}

.required {
  color: var(--vhs-danger);
  font-weight: 700;
}

.reset-form input[type="email"],
.reset-form input[type="password"],
.reset-form input[type="tel"] {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.85rem 1rem;
  border: 2px solid var(--vhs-border);
  border-radius: 0.75rem;
  background: var(--vhs-surface);
  color: var(--vhs-text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.reset-form input::placeholder {
  color: #a89ab8;
}

.reset-form input:focus {
  outline: none;
  border-color: var(--vhs-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.reset-form input[readonly] {
  background: var(--vhs-surface-soft);
  color: #4a3a5e;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 0.75rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  width: 100%;
  color: #ffffff;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d4ab1 100%);
  box-shadow: 0 4px 14px rgba(109, 74, 177, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(109, 74, 177, 0.35);
}

.btn-secondary {
  width: auto;
  color: var(--vhs-text);
  background: #ffffff;
  border: 2px solid var(--vhs-border);
}

.btn-secondary:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: var(--vhs-primary);
}

.btn-small {
  min-height: 2.25rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.change-email-row {
  display: flex;
  justify-content: flex-start;
}

.reset-destination {
  margin: 0.15rem 0 0.35rem;
  color: #4a3a5e;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.reset-destination[hidden] {
  display: none;
}

.otp-inputs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 0.75rem 0 0.25rem;
  flex-wrap: nowrap;
}

.otp-box {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: "SF Mono", "Consolas", monospace;
  border: 2px solid var(--vhs-border-strong);
  border-radius: 10px;
  background: #ffffff;
  color: var(--vhs-text);
  outline: none;
  padding: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-text-size-adjust: 100%;
}

.otp-box:focus {
  border-color: var(--vhs-primary-dark);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.otp-box[aria-invalid="true"] {
  border-color: var(--vhs-danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.password-field {
  position: relative;
  width: 100%;
}

.password-field input {
  padding-right: 3.25rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.65rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: #4a3a5e;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.password-toggle:hover {
  background: rgba(139, 92, 246, 0.08);
  color: var(--vhs-primary-dark);
}

.password-toggle:focus-visible {
  outline: 2px solid var(--vhs-primary-dark);
  outline-offset: 2px;
}

.password-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  pointer-events: none;
}

.password-field input::-ms-reveal,
.password-field input::-ms-clear {
  display: none;
}

.reset-footer {
  margin: 1.25rem 0 0;
  text-align: center;
}

.reset-link {
  color: var(--vhs-primary);
  font-weight: 600;
  text-decoration: none;
}

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

@media (max-width: 480px) {
  .reset-card {
    padding: 1.5rem 1rem;
  }

  .reset-card h1 {
    font-size: 1.65rem;
  }

  .otp-inputs {
    gap: 0.35rem;
  }

  .otp-box {
    width: 42px;
    height: 50px;
    font-size: 1.35rem;
  }
}

@media (max-width: 360px) {
  .otp-inputs {
    gap: 0.3rem;
  }

  .otp-box {
    width: 40px;
    height: 46px;
    font-size: 1.25rem;
  }
}
"
