:root {
  color: #1f2a32;
  background: #eef3f5;
  font-family:
    Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(120deg, rgba(225, 236, 239, 0.92), rgba(241, 244, 238, 0.9)),
    #eef3f5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("./assets/bull-head.png");
  background-position: left 3vw center;
  background-repeat: no-repeat;
  background-size: min(680px, 56vw) auto;
  content: "";
  opacity: 0.42;
  pointer-events: none;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(238, 243, 245, 0.06), rgba(238, 243, 245, 0.18) 52%, rgba(238, 243, 245, 0.84) 72%, rgba(238, 243, 245, 0.96)),
    linear-gradient(0deg, rgba(238, 243, 245, 0.58), rgba(238, 243, 245, 0.04) 45%);
  content: "";
  pointer-events: none;
}

button,
input {
  font: inherit;
}

.login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 72px;
  align-items: center;
  width: min(1120px, calc(100vw - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 0;
}

.intro {
  display: grid;
  gap: 80px;
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(58, 87, 83, 0.18);
  border-radius: 8px;
  background: #2f6d62;
  color: #fff;
  font-weight: 800;
}

.brand-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-subtitle,
.eyebrow,
.panel-heading p,
.intro-copy p {
  color: #60706b;
}

.brand-subtitle {
  font-size: 0.82rem;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 700;
}

.intro-copy {
  max-width: 620px;
}

.intro-copy h1 {
  max-width: 640px;
  margin: 0;
  color: #1b302d;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: 0;
  white-space: nowrap;
}

.intro-copy p:last-child {
  max-width: 520px;
  margin: 24px 0 0;
  font-size: 1.02rem;
}

.login-panel {
  border: 1px solid rgba(58, 87, 83, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 60px rgba(36, 54, 50, 0.12);
  padding: 34px;
}

.panel-heading h2 {
  margin: 0;
  color: #203733;
  font-size: 1.7rem;
  letter-spacing: 0;
}

.panel-heading p:last-child {
  margin: 8px 0 0;
  font-size: 0.94rem;
}

form {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

label {
  display: grid;
  gap: 8px;
  color: #31443f;
  font-size: 0.92rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #c8d4cf;
  border-radius: 8px;
  background: #fbfcfb;
  color: #1f2a32;
  padding: 0 14px;
  outline: none;
}

input:focus {
  border-color: #2f6d62;
  box-shadow: 0 0 0 3px rgba(47, 109, 98, 0.14);
}

.message {
  min-height: 22px;
  margin: 0;
  color: #9b3d33;
  font-size: 0.9rem;
}

.message.success {
  color: #2f6d62;
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: #2f6d62;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

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

@media (max-width: 760px) {
  .login-shell {
    grid-template-columns: 1fr;
    gap: 32px;
    align-content: center;
    width: min(100vw - 28px, 460px);
  }

  .intro {
    gap: 40px;
  }

  .intro-copy h1 {
    font-size: 40px;
  }

  .login-panel {
    padding: 24px;
  }

  body::before {
    background-position: center 74px;
    background-size: 430px auto;
    opacity: 0.34;
  }

  body::after {
    background:
      linear-gradient(180deg, rgba(238, 243, 245, 0.64), rgba(238, 243, 245, 0.9)),
      linear-gradient(0deg, rgba(238, 243, 245, 0.82), rgba(238, 243, 245, 0.12) 42%);
  }
}

@media (max-width: 420px) {
  .intro-copy h1 {
    font-size: 34px;
  }
}
