:root {
  --ink: #132b30;
  --muted: #697b7e;
  --teal: #187b73;
  --navy: #0d2a2f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

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

.login-story {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
  padding: 45px 55px;
  background: var(--navy);
  color: white;
}

.login-story::before,
.login-story::after {
  position: absolute;
  border: 1px solid rgba(128, 202, 192, 0.12);
  border-radius: 50%;
  content: "";
}

.login-story::before { right: -210px; bottom: 70px; width: 560px; height: 560px; }
.login-story::after { right: -90px; bottom: 190px; width: 320px; height: 320px; }

.login-brand {
  display: flex;
  z-index: 1;
  align-items: center;
  gap: 14px;
}

.login-brand-mark {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  transform: rotate(45deg);
}

.login-brand-mark span {
  position: absolute;
  width: 24px;
  height: 8px;
  border: 2px solid #7fc3b7;
}

.login-brand-mark span:first-child { transform: translateY(-9px); }
.login-brand-mark span:last-child { transform: translateY(9px); }
.login-brand strong { display: block; font-family: "Manrope", sans-serif; font-size: 15px; line-height: 1.35; }
.login-brand-copy strong:last-child { margin-top: 1px; color: white; }

.story-copy {
  z-index: 1;
  max-width: 540px;
  margin: auto 0;
}

.eyebrow {
  margin: 0 0 13px;
  color: #74bdb4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.story-copy h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(42px, 5vw, 66px);
  letter-spacing: -3px;
  line-height: 1.08;
}

.story-copy > p:last-child {
  max-width: 500px;
  margin: 24px 0 0;
  color: #aec1c2;
  font-size: 15px;
  line-height: 1.75;
}

.privacy-note {
  z-index: 1;
  margin: 0;
  color: #86a0a2;
  font-size: 10px;
}

.login-panel {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 45px;
  background: #f5f7f5;
}

.login-card {
  width: min(470px, 100%);
  padding: 35px;
  border: 1px solid #dfe8e6;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 48px rgba(22, 55, 57, 0.08);
}
.login-card .eyebrow { color: var(--teal); margin-bottom: 9px; }

.login-card h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 34px;
  letter-spacing: -1.2px;
}

.login-intro {
  margin: 13px 0 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.login-card label {
  display: block;
  margin-top: 17px;
  color: #344c50;
  font-size: 11px;
  font-weight: 700;
}

.login-card input[type="email"],
.login-card input[type="password"],
.login-card input[type="text"] {
  width: 100%;
  height: 47px;
  margin-top: 8px;
  padding: 0 13px;
  border: 1px solid #ccd9d7;
  border-radius: 5px;
  outline: 0;
  background: white;
  color: var(--ink);
  font-size: 13px;
}

.login-card input:focus { border-color: #5b9f98; box-shadow: 0 0 0 3px rgba(24,123,115,.08); }
.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 60px !important; }

.password-wrap button {
  position: absolute;
  top: 20px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 17px;
}

.login-options .remember {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #617477;
  font-weight: 500;
}

.remember input { accent-color: var(--teal); }
.login-options a { color: var(--teal); font-size: 10px; font-weight: 700; text-decoration: none; }

.sign-in-button {
  display: grid;
  width: 100%;
  height: 47px;
  margin-top: 24px;
  place-items: center;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.sign-in-button { border: 0; background: var(--teal); color: white; cursor: pointer; box-shadow: 0 7px 18px rgba(24,123,115,.18); }
.sign-in-button:hover { background: #11645e; }

.sso-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: #8a989a;
  font-size: 10px;
}
.sso-divider::before,
.sso-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e3e8e8;
}
.sso-button {
  display: grid;
  width: 100%;
  height: 47px;
  margin-top: 16px;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: var(--teal);
  color: white;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 7px 18px rgba(24,123,115,.18);
}
.sso-button:hover { background: #11645e; }

[hidden] { display: none !important; }

#ssoView .sso-button { margin-top: 0; }

.alt-signin-link {
  display: block;
  margin: 18px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.alt-signin-link:hover { text-decoration: underline; }
.alt-signin-link.back-link { margin-top: 20px; color: #617477; }

.login-message {
  min-height: 16px;
  margin: 14px 0 0;
  color: #a24d4d;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.login-message.success {
  color: var(--teal);
}

.access-help { margin: 25px 0 0; color: #8a989a; font-size: 10px; text-align: center; }

.reset-dialog {
  width: min(440px, calc(100% - 32px));
  padding: 0;
  border: 1px solid #d7e4e1;
  border-radius: 12px;
  color: var(--ink);
  background: white;
  box-shadow: 0 24px 70px rgba(13, 42, 47, 0.22);
}

.reset-dialog::backdrop {
  background: rgba(13, 42, 47, 0.52);
}

.reset-dialog form {
  padding: 26px;
}

.reset-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.reset-dialog h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 24px;
  letter-spacing: -0.7px;
}

.reset-dialog > form > p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.reset-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #edf4f2;
  color: #5a7174;
  cursor: pointer;
  font-size: 20px;
}

.reset-dialog label {
  display: block;
  margin-top: 14px;
  color: #344c50;
  font-size: 11px;
  font-weight: 700;
}

.reset-dialog input {
  width: 100%;
  height: 42px;
  margin-top: 7px;
  padding: 0 12px;
  border: 1px solid #ccd9d7;
  border-radius: 5px;
  outline: 0;
  color: var(--ink);
  background: white;
  font-size: 13px;
}

.reset-dialog input:focus {
  border-color: #5b9f98;
  box-shadow: 0 0 0 3px rgba(24, 123, 115, 0.08);
}

.reset-message {
  min-height: 15px;
  color: #a24d4d !important;
  font-size: 11px !important;
  font-weight: 700;
}

.reset-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.reset-actions button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.reset-cancel {
  border: 1px solid #d6e0de;
  background: white;
  color: #607174;
  cursor: pointer;
}

.reset-submit {
  border: 0;
  background: var(--teal);
  color: white;
  cursor: pointer;
}

@media (max-width: 780px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-story { min-height: 330px; padding: 30px; }
  .story-copy { margin: 55px 0; }
  .story-copy h1 { font-size: 39px; letter-spacing: -2px; }
  .privacy-note { display: none; }
  .login-panel { min-height: auto; padding: 50px 25px; }
  .login-card { padding: 26px; }
}
