:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  background: #eef5f4;
  color: #142d34;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 8%, rgba(48, 190, 177, 0.18), transparent 32rem),
    linear-gradient(135deg, #eaf5f3 0%, #f8fbfa 52%, #edf4f6 100%);
}

button,
input {
  font: inherit;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.1fr);
  align-items: stretch;
}

.login-brand {
  padding: clamp(40px, 8vw, 110px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #123d49;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.login-brand::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  right: -190px;
  bottom: -170px;
  box-shadow: 0 0 0 55px rgba(255, 255, 255, 0.035);
}

.brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #21b8ae, #53d3c1);
  font-size: 29px;
  font-weight: 800;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
}

.eyebrow,
.card-kicker {
  margin: 26px 0 8px;
  color: #6fe0d2;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.login-brand h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.brand-copy {
  margin: 18px 0 30px;
  color: #c2d8dc;
  font-size: 17px;
}

.login-brand ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  color: #d9e8ea;
}

.login-brand li::before {
  content: "✓";
  color: #6fe0d2;
  margin-right: 10px;
  font-weight: 800;
}

.login-card {
  width: min(460px, calc(100% - 40px));
  margin: auto;
  padding: clamp(30px, 6vw, 52px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(18, 61, 73, 0.08);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(22, 66, 77, 0.14);
  backdrop-filter: blur(12px);
}

.login-card .card-kicker {
  margin-top: 0;
  color: #15988f;
}

.login-card h2 {
  margin: 0;
  font-size: 30px;
}

.card-copy {
  color: #6b7f84;
  line-height: 1.65;
  margin: 10px 0 26px;
}

form {
  display: grid;
  gap: 10px;
}

label {
  margin-top: 7px;
  font-size: 14px;
  font-weight: 700;
  color: #38545b;
}

input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #c9d8da;
  border-radius: 10px;
  background: #fff;
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
}

input:focus {
  border-color: #20aaa0;
  box-shadow: 0 0 0 4px rgba(32, 170, 160, 0.12);
}

button,
.primary-link {
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  padding: 0 18px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 800;
}

form button,
.primary-link {
  margin-top: 14px;
  color: #fff;
  background: linear-gradient(135deg, #159b92, #1bb4a8);
  box-shadow: 0 12px 24px rgba(26, 168, 158, 0.2);
}

button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.secondary {
  color: #1d7772;
  background: #e8f5f3;
  box-shadow: none;
}

.text-button {
  color: #687d82;
  background: transparent;
}

.session-actions {
  display: grid;
  gap: 10px;
}

.message {
  min-height: 22px;
  margin: 18px 0 0;
  color: #c43f4f;
  font-size: 14px;
}

.message.success {
  color: #16836f;
}

.security-note {
  margin: 15px 0 0;
  padding-top: 15px;
  border-top: 1px solid #e7eeee;
  color: #8a9b9f;
  font-size: 12px;
  line-height: 1.6;
}

[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .login-shell {
    display: block;
    min-height: 100vh;
    padding: 20px 0 34px;
  }

  .login-brand {
    margin: 0 20px;
    padding: 26px;
    border-radius: 22px 22px 0 0;
  }

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

  .brand-copy {
    margin-bottom: 0;
  }

  .login-brand ul,
  .login-brand::after {
    display: none;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    font-size: 23px;
    border-radius: 13px;
  }

  .eyebrow {
    margin-top: 18px;
  }

  .login-card {
    width: calc(100% - 40px);
    margin: 0 20px;
    border-radius: 0 0 22px 22px;
    padding: 28px 24px;
  }
}
