/* Login page only. The rest of the dashboard keeps its existing theme. */
body.login-body {
  min-width: 0;
  color: #f7fcff;
  background: #074a77 url("/assets/login_reef_background.webp") center center / cover no-repeat fixed;
  font-family: "Exo 2", sans-serif;
}

.login-shell {
  min-height: 100vh;
  min-height: 100svh;
  padding: 42px clamp(24px, 4.35vw, 74px) 27px;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
}

.login-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(1, 32, 58, .04) 0%, rgba(2, 30, 49, .02) 65%, rgba(0, 13, 26, .38) 100%);
}

.login-revision {
  position: absolute;
  top: 34px;
  right: clamp(24px, 3.2vw, 54px);
  font-size: 20px;
  letter-spacing: .02em;
  text-shadow: 0 1px 10px #093c61;
}

.login-grid {
  width: min(1526px, 100%);
  flex: 1;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(34px, 8.7vw, 146px);
  align-items: center;
}

.login-hero,
.login-panel {
  border-radius: 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 24px 56px rgba(0, 25, 50, .24);
}

.login-hero {
  min-height: min(814px, calc(100svh - 126px));
  padding: clamp(28px, 2.6vw, 44px) clamp(30px, 3vw, 50px) 18px;
  background: linear-gradient(125deg, rgba(4, 34, 61, .95), rgba(2, 34, 63, .87));
  border: 1px solid rgba(88, 184, 239, .55);
  display: flex;
  flex-direction: column;
}

.login-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
  padding-bottom: 22px;
  border-bottom: 1px solid #72ddf4;
}

.login-brand-mark {
  width: clamp(126px, 11vw, 185px);
  height: auto;
  flex: none;
}

.login-brand-wordmark { min-width: 0; }
.login-brand-name {
  font-size: clamp(66px, 6.3vw, 106px);
  font-weight: 700;
  letter-spacing: -.07em;
  line-height: .9;
  white-space: nowrap;
}

.login-brand-subtitle {
  margin-top: 9px;
  font-size: clamp(13px, 1.24vw, 21px);
  letter-spacing: .22em;
  white-space: nowrap;
}

.login-mission { margin-top: 22px; }
.login-mission h1 {
  margin: 0 0 12px;
  color: #7fe4ff;
  font-size: clamp(16px, 1.25vw, 21px);
  font-weight: 700;
  letter-spacing: .29em;
  text-transform: uppercase;
}
.login-mission p {
  margin: 0;
  color: #e6eaf6;
  font-size: clamp(15px, 1.26vw, 20px);
  line-height: 1.43;
  letter-spacing: .005em;
}

.login-benefits {
  display: grid;
  gap: clamp(10px, 1.3vh, 16px);
  margin-top: auto;
}
.login-benefit {
  display: flex;
  gap: 26px;
  align-items: center;
  min-height: 78px;
}
.login-benefit-icon {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: #1789b2;
}
.login-benefit-icon svg { width: 43px; height: 43px; }
.login-benefit-icon--baseline { background: linear-gradient(135deg, #2ca9c3, #1276a5); }
.login-benefit-icon--scenarios { background: linear-gradient(135deg, #2994d0, #186dae); }
.login-benefit-icon--evidence { background: linear-gradient(135deg, #6685db, #344cb0); }
.login-benefit-icon--action { background: linear-gradient(135deg, #0fc3a0, #008c8e); }
.login-benefit strong,
.login-benefit span:last-child { display: block; }
.login-benefit strong {
  font-size: clamp(16px, 1.28vw, 20px);
  font-weight: 700;
  line-height: 1.2;
}
.login-benefit div > span {
  max-width: 390px;
  margin-top: 3px;
  color: #e1e8f1;
  font-size: clamp(14px, 1.16vw, 18px);
  line-height: 1.35;
}

.login-panel {
  width: 100%;
  min-height: min(680px, calc(100svh - 190px));
  padding: 34px clamp(32px, 3.65vw, 61px) 28px;
  color: #123968;
  background: rgba(235, 250, 255, .95);
  border: 1px solid rgba(255, 255, 255, .92);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #d0ebfb;
  color: #103f75;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}
.login-avatar svg { width: 68px; height: 68px; }
.login-panel-header { text-align: center; margin-bottom: 28px; }
.login-panel-header h2 { margin: 0; color: #172744; font-size: clamp(34px, 2.7vw, 44px); font-weight: 700; line-height: 1.1; }
.login-panel-header p { margin: 9px 0 0; color: #123968; font-size: clamp(19px, 1.5vw, 24px); }
.login-form { display: grid; gap: 16px; }
.login-field { position: relative; display: flex; align-items: center; }
.login-field > svg {
  position: absolute;
  left: 22px;
  width: 29px;
  height: 29px;
  color: #124477;
  pointer-events: none;
}
.login-field input {
  width: 100%;
  height: 64px;
  padding: 0 60px 0 68px;
  color: #17395f;
  font-family: inherit;
  font-size: 20px;
  border: 1px solid #b8d4e6;
  border-radius: 10px;
  background: rgba(255, 255, 255, .88);
  outline: none;
  box-shadow: 0 2px 8px rgba(15, 77, 118, .04);
}
.login-field input::placeholder { color: #64738b; opacity: 1; }
.login-field input:focus { border-color: #2388c4; background: #fff; box-shadow: 0 0 0 3px rgba(35, 136, 196, .18); }
.login-password-toggle {
  position: absolute;
  right: 12px;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 0;
  border-radius: 8px;
  color: #16457b;
  background: transparent;
  cursor: pointer;
}
.login-password-toggle:hover,
.login-password-toggle:focus-visible { background: #d8edf8; outline: none; }
.login-password-toggle svg { width: 26px; height: 26px; }
.login-submit {
  height: 64px;
  margin-top: 4px;
  color: white;
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  border: 1px solid #2585c1;
  border-radius: 10px;
  background: linear-gradient(180deg, #1266a0, #0b376e);
  cursor: pointer;
}
.login-submit span { color: #9ce6fc; font-size: 30px; font-weight: 400; vertical-align: -2px; margin-left: 8px; }
.login-submit:hover { background: linear-gradient(180deg, #1879b9, #0c427e); }
.login-submit:focus-visible { outline: 3px solid #41b9ee; outline-offset: 3px; }
.login-form-options { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 18px; }
.login-remember { display: inline-flex; align-items: center; gap: 12px; margin: 0; cursor: pointer; font-weight: 400; }
.login-remember input { appearance: none; width: 24px; height: 24px; margin: 0; border: 1px solid #8eb8dc; border-radius: 5px; background: white; cursor: pointer; }
.login-remember input:checked { background: #1469a7; box-shadow: inset 0 0 0 5px white; }
.login-remember input:focus-visible { outline: 3px solid #41b9ee; outline-offset: 2px; }
.login-forgot { color: #0646c8; text-decoration: none; }
.login-forgot:hover,
.login-forgot:focus-visible { text-decoration: underline; }
.login-error { padding: 11px 14px; color: #8d1739; border: 1px solid #e7a9b8; border-radius: 8px; background: #fff1f4; }
.login-panel-footer { margin-top: 24px; padding-top: 18px; border-top: 1px solid #9fc7df; text-align: center; }
.login-panel-footer > p:first-child { margin: 0 0 8px; font-size: 19px; }
.login-panel-footer svg { width: 120px; height: 22px; color: #195789; }
.login-help-text { display: none; margin: 8px 0 0; color: #17395f; font-size: 14px; }
.login-panel-footer:target .login-help-text { display: block; }
.login-page-footer {
  width: min(1560px, 100%);
  margin: 21px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  text-shadow: 0 2px 12px #001c2e;
}
.login-page-footer span { font-size: 15px; font-weight: 700; letter-spacing: .24em; }
.login-page-footer em { font-family: cursive; font-size: 26px; white-space: nowrap; }
.login-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1250px) {
  .login-grid { gap: 30px; grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr); }
  .login-hero { min-height: 680px; }
  .login-brand-mark { width: 118px; }
  .login-brand-name { font-size: clamp(58px, 6vw, 82px); }
  .login-brand-subtitle { font-size: 13px; letter-spacing: .12em; }
  .login-benefit { gap: 15px; }
  .login-benefit-icon { flex-basis: 58px; width: 58px; height: 58px; }
  .login-benefit-icon svg { width: 35px; height: 35px; }
  .login-page-footer span { font-size: 12px; }
}
@media (max-width: 900px) {
  .login-shell { padding: 65px 24px 28px; }
  .login-grid { grid-template-columns: 1fr; gap: 24px; max-width: 640px; }
  .login-panel { order: -1; min-height: 0; }
  .login-hero { min-height: 0; }
  .login-benefits { margin-top: 24px; }
  .login-page-footer { max-width: 640px; flex-wrap: wrap; }
}
@media (max-width: 560px) {
  body.login-body { background-attachment: scroll; }
  .login-shell { padding: 58px 14px 20px; }
  .login-revision { top: 17px; right: 18px; font-size: 15px; }
  .login-panel, .login-hero { border-radius: 18px; }
  .login-panel { padding: 28px 22px 24px; }
  .login-avatar { width: 76px; height: 76px; margin-bottom: 12px; }
  .login-avatar svg { width: 55px; height: 55px; }
  .login-panel-header { margin-bottom: 20px; }
  .login-field input { height: 56px; font-size: 17px; }
  .login-submit { height: 56px; font-size: 19px; }
  .login-form-options { font-size: 14px; }
  .login-hero { padding: 28px 22px; }
  .login-brand { gap: 12px; }
  .login-brand-mark { width: 72px; }
  .login-brand-name { font-size: clamp(40px, 12vw, 60px); }
  .login-brand-subtitle { margin-top: 5px; font-size: 8px; letter-spacing: .1em; }
  .login-mission h1 { font-size: 15px; }
  .login-mission p { font-size: 14px; }
  .login-benefit strong { font-size: 15px; }
  .login-benefit div > span { font-size: 13px; }
  .login-page-footer { justify-content: center; text-align: center; gap: 8px; }
  .login-page-footer span { font-size: 10px; letter-spacing: .1em; }
  .login-page-footer em { font-size: 20px; }
}
