:root {
  --bg: #d7e1ef;
  --card: #e8eef8;
  --ink: #0e1323;
  --muted: #4e5f7c;
  --navy: #05163f;
  --field: #071b4d;
  --line: #c8d4e7;
  --soft-shadow: 14px 14px 30px rgba(91, 117, 152, 0.28), -12px -12px 26px rgba(255, 255, 255, 0.85);
  --inner-shadow: inset 5px 5px 12px rgba(126, 149, 178, 0.2), inset -5px -5px 10px rgba(255, 255, 255, 0.8);
}

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

body {
  min-height: 100vh;
  font-family: "Sora", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 50% 12%, #f2f5fb 0%, var(--bg) 62%);
}

.neo-scene {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 36px 18px;
}

.neo-card {
  width: min(980px, 100%);
  border-radius: 34px;
  background: linear-gradient(165deg, #ebf1fa, #dfe8f5);
  box-shadow: var(--soft-shadow);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.top-strip {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}

.chip-row {
  flex: 1;
  border-radius: 999px;
  background: #edf3fc;
  box-shadow: var(--inner-shadow);
  padding: 8px;
  display: flex;
  gap: 10px;
}

.chip {
  min-height: 46px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #edf3fc;
  color: #15203a;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 4px 4px 10px rgba(127, 149, 179, 0.26), -3px -3px 10px rgba(255, 255, 255, 0.72);
  transition: all 0.25s ease;
}

.chip:not(.chip-dark):hover {
  background: linear-gradient(165deg, #0a2052, #06143a);
  color: #eef4ff;
  box-shadow: 0 10px 18px rgba(5, 20, 56, 0.34);
}

.chip-dark {
  background: linear-gradient(165deg, #0a2052, #06143a);
  color: #eef4ff;
  box-shadow: 0 10px 18px rgba(5, 20, 56, 0.34);
}

.profile-chip {
  margin-top: 7px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(165deg, #edf3fc, #e1e9f6);
  color: #0e1a38;
  box-shadow: var(--inner-shadow);
  display: grid;
  place-items: center;
}

.title-block {
  text-align: center;
  margin-bottom: 22px;
}

.title-block h1 {
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: -0.6px;
}

.title-block p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.message-slot {
  width: min(640px, 100%);
  min-height: 44px;
  margin: 0 auto 12px;
}

.error-placeholder {
  width: 100%;
  height: 38px;
}

.error-message {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #eab2b2;
  background: #fdeeee;
  color: #b41e1e;
  font-size: 14px;
  padding: 10px 14px;
}

.forgot-form {
  width: min(640px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field {
  border-radius: 999px;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
}

.field-dark {
  background: linear-gradient(165deg, var(--field), var(--navy));
  color: #eef4ff;
  box-shadow: 0 14px 24px rgba(5, 18, 50, 0.28);
}

.field input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent !important;
  box-shadow: none !important;
  color: #eef4ff;
  font-family: inherit;
  font-size: 15px;
  -webkit-appearance: none;
  appearance: none;
  caret-color: #eef4ff;
}

.field input:focus,
.field input:active {
  background: transparent !important;
  box-shadow: none !important;
  outline: none;
}

.field input::placeholder {
  color: rgba(228, 238, 255, 0.86);
}

.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field input:-webkit-autofill:active {
  -webkit-text-fill-color: #eef4ff !important;
  -webkit-box-shadow: 0 0 0 1000px #071b4d inset !important;
  box-shadow: 0 0 0 1000px #071b4d inset !important;
  background-clip: content-box !important;
  transition: background-color 5000s ease-in-out 0s;
}

.primary-btn {
  margin-top: 6px;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #f0f5ff;
  background: linear-gradient(165deg, #0a2052, #05163f);
  box-shadow: 0 14px 24px rgba(5, 18, 50, 0.32);
  cursor: pointer;
}

.footer-text {
  margin-top: 4px;
  text-align: center;
  font-size: 14px;
  color: #2d3550;
}

.footer-text a {
  color: #173b80;
  text-decoration: none;
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 760px) {
  .neo-card {
    border-radius: 24px;
    padding: 16px;
  }

  .top-strip {
    flex-direction: column;
  }

  .chip-row {
    overflow-x: auto;
    white-space: nowrap;
  }

  .chip {
    min-height: 42px;
    padding: 10px 18px;
    font-size: 14px;
  }

  .profile-chip {
    align-self: flex-end;
    margin-top: 0;
  }

  .title-block h1 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .field,
  .primary-btn {
    min-height: 50px;
  }
}

@media (max-width: 1280px) {
  .neo-scene {
    padding: 14px 12px;
  }

  .neo-card {
    width: min(760px, 100%);
    border-radius: 20px;
    padding: 16px;
  }

  .top-strip {
    gap: 10px;
    margin-bottom: 14px;
  }

  .chip-row {
    padding: 6px;
    gap: 8px;
  }

  .chip {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 12px;
  }

  .profile-chip {
    margin-top: 7px;
    width: 36px;
    height: 36px;
  }

  .title-block {
    margin-bottom: 12px;
  }

  .title-block h1 {
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.1;
  }

  .title-block p {
    margin-top: 5px;
    font-size: 11px;
  }

  .message-slot {
    width: min(500px, 100%);
    min-height: 38px;
    margin-bottom: 10px;
  }

  .error-message {
    font-size: 12px;
    padding: 8px 10px;
  }

  .forgot-form {
    width: min(500px, 100%);
    gap: 8px;
  }

  .field,
  .primary-btn {
    min-height: 40px;
  }

  .field {
    padding: 0 14px;
    gap: 8px;
  }

  .field input,
  .primary-btn {
    font-size: 12px;
  }

  .field svg {
    width: 15px;
    height: 15px;
  }
}
