:root {
  color: #143433;
  background: #f4f8f6;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}

button,
input {
  font: inherit;
}

.login-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(320px, 0.88fr) minmax(440px, 1.12fr);
}

.identity-panel {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 5vw, 76px);
  overflow: hidden;
  color: #dcefeb;
  background:
    radial-gradient(circle at 82% 16%, rgb(64 207 190 / 32%), transparent 26%),
    radial-gradient(circle at 18% 92%, rgb(28 126 119 / 38%), transparent 30%),
    linear-gradient(145deg, #082b2d, #0d4744);
}

.identity-panel::after {
  position: absolute;
  right: -150px;
  bottom: -150px;
  width: 420px;
  height: 420px;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 50%;
  box-shadow:
    0 0 0 56px rgb(255 255 255 / 3%),
    0 0 0 112px rgb(255 255 255 / 2%);
  content: "";
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 14px;
  color: #fff;
  background: rgb(255 255 255 / 9%);
  font-weight: 800;
  letter-spacing: -0.08em;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  color: #fff;
  font-size: 0.96rem;
}

.brand div > span {
  margin-top: 2px;
  color: #8ebbb4;
  font-size: 0.75rem;
}

.identity-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: auto 0;
  padding: 70px 0;
}

.eyebrow {
  display: block;
  margin-bottom: 14px;
  color: #35c6b7;
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.identity-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 4.3vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.identity-copy p {
  max-width: 540px;
  margin: 24px 0 0;
  color: #9fc4be;
  font-size: clamp(0.92rem, 1.3vw, 1.08rem);
  line-height: 1.8;
}

.security-note {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #789e98;
  font-size: 0.74rem;
}

.form-panel {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(28px, 7vw, 100px);
  background:
    linear-gradient(rgb(13 71 68 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(13 71 68 / 3%) 1px, transparent 1px),
    #f4f8f6;
  background-size: 42px 42px;
}

.login-card {
  width: min(100%, 480px);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid #d7e4df;
  border-radius: 24px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 28px 70px rgb(16 66 63 / 12%);
}

.card-heading h2 {
  margin: 0;
  color: #102e2d;
  font-size: 1.75rem;
  letter-spacing: -0.035em;
}

.card-heading p {
  margin: 10px 0 28px;
  color: #6c827e;
  font-size: 0.88rem;
}

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

label {
  display: grid;
  gap: 8px;
}

label span {
  color: #324b48;
  font-size: 0.78rem;
  font-weight: 680;
}

input {
  width: 100%;
  height: 48px;
  border: 1px solid #cadbd6;
  border-radius: 12px;
  outline: none;
  padding: 0 14px;
  color: #173633;
  background: #fbfdfc;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

input:focus {
  border-color: #218f86;
  box-shadow: 0 0 0 4px rgb(33 143 134 / 11%);
}

button {
  display: flex;
  width: 100%;
  height: 50px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 12px;
  padding: 0 17px;
  color: #fff;
  background: #176f68;
  box-shadow: 0 12px 25px rgb(23 111 104 / 22%);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 720;
  transition:
    background 150ms ease,
    transform 150ms ease;
}

button:hover {
  background: #208f85;
  transform: translateY(-1px);
}

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

.form-message {
  min-height: 20px;
  margin: -4px 0 0;
  color: #a33b3b;
  font-size: 0.76rem;
}

.card-foot {
  margin: 25px 0 0;
  padding-top: 20px;
  border-top: 1px solid #e3ece9;
  color: #82928f;
  font-size: 0.7rem;
  line-height: 1.6;
}

@media (max-width: 820px) {
  .login-layout {
    grid-template-columns: 1fr;
  }

  .identity-panel {
    min-height: 310px;
    padding: 28px;
  }

  .identity-copy {
    padding: 48px 0 24px;
  }

  .identity-copy h1 {
    font-size: clamp(2rem, 10vw, 3.4rem);
  }

  .identity-copy p,
  .security-note {
    display: none;
  }

  .form-panel {
    min-height: auto;
    padding: 28px 18px 48px;
  }

  .login-card {
    margin-top: -38px;
  }
}
