:root {
  --deep: #173d4b;
  --deep-soft: #255a68;
  --teal: #2a9995;
  --orange: #f1a36c;
  --ink: #1d2a3b;
  --muted: #8a99a5;
  --line: #dfe9eb;
  --paper: #f4f8f8;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 14px Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input {
  font: inherit;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(420px, 520px);
  min-height: 100vh;
}

.login-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px clamp(48px, 9vw, 150px);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(23, 61, 75, .96), rgba(34, 84, 98, .96)),
    #173d4b;
}

.login-brand::before,
.login-brand::after {
  position: absolute;
  border: 1px solid rgba(157, 219, 211, .22);
  border-radius: 50%;
  content: "";
}

.login-brand::before {
  right: -130px;
  bottom: -150px;
  width: 440px;
  height: 440px;
}

.login-brand::after {
  right: 74px;
  bottom: 95px;
  width: 210px;
  height: 210px;
}

.brand-mark {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 17px;
  color: var(--deep);
  background: var(--orange);
  font-size: 28px;
  font-weight: 800;
}

.brand-kicker {
  position: relative;
  z-index: 1;
  margin: 46px 0 18px;
  color: #a5d1ce;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
}

.login-brand h1 {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.18;
  letter-spacing: 0;
}

.brand-copy {
  position: relative;
  z-index: 1;
  max-width: 460px;
  margin: 26px 0 0;
  color: #bdd2d4;
  font-size: 15px;
  line-height: 1.8;
}

.brand-notes {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 50px;
  color: #c9ddde;
  font-size: 12px;
}

.brand-notes span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-notes i,
.status i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #74d4ad;
  box-shadow: 0 0 0 4px rgba(116, 212, 173, .12);
}

.login-panel {
  align-self: center;
  width: min(100% - 64px, 390px);
  margin: 0 auto;
}

.panel-top,
.form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-label {
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7c9398;
  font-size: 11px;
}

.login-panel h2 {
  margin: 58px 0 10px;
  font-size: 32px;
}

.panel-copy {
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 13px;
}

.field {
  display: block;
  margin-top: 20px;
  color: #506773;
  font-size: 12px;
  font-weight: 700;
}

.input-wrap {
  display: flex;
  align-items: center;
  height: 52px;
  margin-top: 9px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
}

.input-wrap:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(42, 153, 149, .1);
}

.input-icon {
  width: 24px;
  color: #9eb2b6;
  font-size: 14px;
}

.input-wrap input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.input-wrap input::placeholder {
  color: #b2bec3;
}

.password-toggle {
  flex: 0 0 auto;
  padding: 6px;
  border: 0;
  color: var(--teal);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
}

.form-meta {
  min-height: 35px;
  margin-top: 12px;
  color: #a4afb5;
  font-size: 11px;
}

.error-message {
  color: #c7645b;
}

.login-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 54px;
  margin-top: 9px;
  padding: 0 18px 0 22px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--teal);
  box-shadow: 0 12px 24px rgba(42, 153, 149, .2);
  cursor: pointer;
  font-weight: 700;
  transition: transform .18s, background .18s;
}

.login-button span {
  font-size: 20px;
  font-weight: 400;
}

.login-button:hover {
  background: #238782;
  transform: translateY(-1px);
}

.login-button:disabled {
  cursor: wait;
  opacity: .7;
}

.security-note {
  margin: 28px 0 0;
  color: #a2adb3;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 820px) {
  .login-shell {
    display: block;
  }

  .login-brand {
    min-height: 43vh;
    padding: 38px 30px 50px;
  }

  .brand-kicker {
    margin-top: 28px;
  }

  .login-brand h1 {
    font-size: 34px;
  }

  .brand-copy {
    margin-top: 17px;
  }

  .brand-notes {
    margin-top: 25px;
  }

  .login-panel {
    padding: 48px 0 55px;
  }

  .login-panel h2 {
    margin-top: 38px;
  }
}

@media (max-width: 420px) {
  .login-panel {
    width: calc(100% - 40px);
  }
}
