/* ===== Login page ===== */
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(560px, 1fr) 480px;
  background:
    radial-gradient(circle at 18% 18%, rgba(37, 99, 235, 0.18), transparent 32%),
    radial-gradient(circle at 76% 70%, rgba(20, 184, 166, 0.14), transparent 30%),
    linear-gradient(135deg, #eef4ff 0%, #f7fafc 46%, #eef7f4 100%);
  color: #1d2738;
  overflow: hidden;
}

.login__brand {
  min-height: 100vh;
  padding: 44px 64px 56px;
  display: flex;
  flex-direction: column;
  position: relative;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, #2563eb, #1642a8);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.26);
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  color: #172033;
}

.brand-headline {
  margin: 76px 0 0;
  max-width: 560px;
  font-size: 58px;
  line-height: 1.08;
  font-weight: 750;
  letter-spacing: 0;
  color: #111827;
}

.brand-headline span {
  color: #1765d8;
}

.brand-sub {
  max-width: 560px;
  margin-top: 22px;
  color: #4b5a73;
  font-size: 16px;
  line-height: 1.9;
}

.brand-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 14px;
  max-width: 520px;
  margin-top: 34px;
}

.brand-feature {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(120, 141, 170, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: #2f3d53;
  font-size: 14px;
}

.brand-feature__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #19a886;
  box-shadow: 0 0 0 4px rgba(25, 168, 134, 0.12);
}

.login__form-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 56px 40px 0;
}

.login__form {
  width: 392px;
  padding: 36px;
  border: 1px solid rgba(132, 151, 176, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 70px rgba(31, 45, 71, 0.16);
  backdrop-filter: blur(18px);
}

.login__title {
  margin: 0;
  color: #172033;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
}

.login__sub {
  margin-top: 8px;
  margin-bottom: 26px;
  color: #6b768c;
  font-size: 13px;
}

.field {
  margin-bottom: 18px;
}

.field__label {
  display: block;
  margin-bottom: 8px;
  color: #344155;
  font-size: 13px;
  font-weight: 600;
}

.field__input {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid #d8dee9;
  border-radius: 8px;
  background: #fff;
  color: #1d2738;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field__input:focus-within {
  border-color: #1765d8;
  box-shadow: 0 0 0 3px rgba(23, 101, 216, 0.12);
}

.field__input--error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.field__input input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #172033;
}

.field__input input::placeholder {
  color: #9aa4b5;
}

.field__icon,
.field__toggle {
  flex: none;
  color: #74809a;
}

.field__toggle {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 6px;
}

.field__toggle:hover {
  background: #f1f5f9;
  color: #1765d8;
}

.field__error {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  color: #dc2626;
  font-size: 12px;
}

.extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 22px;
  color: #6b768c;
  font-size: 13px;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.remember__box {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border: 1px solid #c8d0dc;
  border-radius: 4px;
  background: #fff;
  color: #fff;
}

.remember--checked .remember__box {
  border-color: #1765d8;
  background: #1765d8;
}

.forgot {
  position: relative;
  cursor: default;
}

.forgot__tip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: 230px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #172033;
  color: #fff;
  font-size: 12px;
  line-height: 1.6;
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.forgot:hover .forgot__tip {
  opacity: 1;
  transform: translateY(0);
}

.login__submit {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #1765d8;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(23, 101, 216, 0.26);
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.login__submit:hover {
  background: #1254b5;
  box-shadow: 0 14px 30px rgba(23, 101, 216, 0.32);
}

.login__submit:active {
  transform: translateY(1px);
}

.login__submit:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.demo-hint {
  margin-top: 18px;
  text-align: center;
  color: #6b768c;
  font-size: 12px;
}

.demo-hint code {
  padding: 2px 6px;
  border-radius: 5px;
  background: #eef4ff;
  color: #1765d8;
  font-family: var(--font-num, ui-monospace, SFMono-Regular, Menlo, monospace);
}

@media (max-width: 980px) {
  .login {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .login__brand {
    min-height: auto;
    padding: 28px 28px 8px;
  }

  .brand-headline {
    margin-top: 44px;
    font-size: 42px;
  }

  .brand-features {
    grid-template-columns: 1fr;
  }

  .login__form-wrap {
    min-height: auto;
    padding: 28px;
  }

  .login__form {
    width: min(100%, 420px);
  }
}
