:root {
  --i-text: #1d1d1f;
  --i-muted: #667083;
  --i-card-bg: rgba(255, 255, 255, 0.78);
  --i-card-border: rgba(255, 255, 255, 0.52);
  --i-button-start: #0a84ff;
  --i-button-end: #0064d8;
  --i-focus: #0a84ff;
  --i-danger-bg: #ffe9ea;
  --i-danger-text: #bf2734;
}

* {
  box-sizing: border-box;
}

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

body {
  color: var(--i-text);
  font-family:
    "SF Pro Display",
    "SF Pro Text",
    "Segoe UI Variable Display",
    "Segoe UI",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background:
    radial-gradient(circle at 18% 18%, #f8fbff 0, #e9f1ff 34%, transparent 58%),
    radial-gradient(circle at 82% 12%, #edf9ff 0, #deebff 37%, transparent 64%),
    linear-gradient(165deg, #f4f7ff 0%, #dfecff 48%, #e4f8ff 100%);
}

.i-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}

.i-bg {
  position: absolute;
  border-radius: 999px;
  filter: blur(0.5px);
  z-index: 0;
}

.i-bg-one {
  width: 360px;
  height: 360px;
  left: -120px;
  top: -70px;
  background: radial-gradient(
    circle,
    rgba(116, 164, 255, 0.52) 0%,
    rgba(116, 164, 255, 0.08) 64%,
    transparent 74%
  );
}

.i-bg-two {
  width: 420px;
  height: 420px;
  right: -180px;
  bottom: -150px;
  background: radial-gradient(
    circle,
    rgba(127, 215, 255, 0.5) 0%,
    rgba(127, 215, 255, 0.06) 62%,
    transparent 74%
  );
}

.i-card {
  width: min(100%, 420px);
  background: var(--i-card-bg);
  border: 1px solid var(--i-card-border);
  border-radius: 22px;
  padding: 2rem 1.7rem 1.5rem;
  box-shadow: 0 24px 50px rgba(5, 36, 84, 0.16);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  position: relative;
  z-index: 1;
}

.i-kicker {
  margin: 0;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  font-weight: 700;
  color: #5487c9;
}

.i-title {
  margin: 0.55rem 0 0;
  font-size: clamp(1.55rem, 4vw, 1.9rem);
  font-weight: 680;
  line-height: 1.18;
}

.i-subtitle {
  margin: 0.5rem 0 1.3rem;
  color: var(--i-muted);
  font-size: 0.97rem;
}

.i-error {
  margin: 0 0 1rem;
  padding: 0.62rem 0.72rem;
  border-radius: 12px;
  background: var(--i-danger-bg);
  color: var(--i-danger-text);
  font-size: 0.92rem;
}

.i-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.i-input {
  width: 100%;
  border: 1px solid #ccdaee;
  border-radius: 12px;
  padding: 0.72rem 0.85rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.95);
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.i-password-wrap {
  position: relative;
}

.i-password-wrap .i-input {
  padding-right: 2.85rem;
}

.i-password-toggle {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #4d76ad;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background-color 120ms ease,
    color 120ms ease;
}

.i-password-toggle:hover {
  background-color: rgba(84, 135, 201, 0.12);
  color: #245fa3;
}

.i-password-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.22);
}

.i-eye {
  display: inline-block;
  font-size: 1.1rem;
  line-height: 1;
}

.i-eye-closed {
  display: none;
}

.i-password-toggle::after {
  content: "";
}

.i-password-toggle .bi::before {
  display: block;
}

.i-password-toggle[aria-pressed="true"] .i-eye-open {
  display: none;
}

.i-password-toggle[aria-pressed="true"] .i-eye-closed {
  display: block;
}

.i-input:focus {
  outline: none;
  border-color: var(--i-focus);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.22);
}

.i-button {
  width: 100%;
  margin-top: 1rem;
  border: 0;
  border-radius: 12px;
  padding: 0.74rem 1rem;
  background: linear-gradient(
    180deg,
    var(--i-button-start),
    var(--i-button-end)
  );
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    filter 140ms ease;
  box-shadow: 0 10px 18px rgba(0, 100, 216, 0.26);
}

.i-button:hover {
  filter: brightness(1.04);
}

.i-button:active {
  transform: translateY(1px);
}

.i-button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(10, 132, 255, 0.22),
    0 10px 18px rgba(0, 100, 216, 0.26);
}

.i-back-home-wrap {
  margin: 0.85rem 0 0;
  text-align: center;
}

.i-back-home {
  color: #0a5ec2;
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
}

.i-back-home:hover {
  text-decoration: underline;
}

.i-back-home:focus-visible {
  outline: 2px solid rgba(10, 132, 255, 0.5);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (max-width: 420px) {
  .i-card {
    padding: 1.7rem 1.2rem 1.2rem;
    border-radius: 18px;
  }

  .i-bg-one {
    width: 280px;
    height: 280px;
  }

  .i-bg-two {
    width: 300px;
    height: 300px;
  }
}
