:root {
  color-scheme: light;
  --accent2: #072940;
  --primary-green: #1fa4a8;
  --primary-lightgreen: #e5f0f0;
  --grey: #ECECF0;
  --bg: #ECECF0;
  --white: #fff;
  --accent2-2: #4b6272;
  --line: #c7c8d2;
  --field: #f6f6f8;
  --err: #b42318;
  --err-bg: #b9b5b4;
  font-family: Roboto, sans-serif !important;
  color: var(--accent2);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  padding: 24px;
}

.login-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 48px 52px;
  border-radius: 28px;
  color: #fff;
  /* background-color: var(--accent2); */
  background-image: linear-gradient(180deg, rgba(5, 31, 49, .3), rgba(5, 31, 49, .60) 40%, rgba(5, 31, 49, .70)), url('./assets/a000fa485c1d2635cb15028fa28e4f01.jpg');
  background-size: cover;
  background-position: center 30%;
  justify-content: space-between;
}

.login-panel::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  opacity: 0;
  transition: opacity .45s ease;
  background: linear-gradient(180deg, rgba(7, 41, 64, .74), rgba(7, 41, 64, .84) 40%, rgba(5, 31, 49, .94)), url('./assets/53bf57c7c239856d99b37d09ed3ebe76.jpg') center 40% / cover no-repeat;
}

.login-panel.login-family::before {
  opacity: 1;
}

.login-panel>* {
  position: relative;
}

.login-chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(236, 236, 240, .4);
  border-radius: 999px;
  background: rgba(7, 41, 64, .6);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.login-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-green);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3,
.login-wordmark {
    font-family: Roboto, sans-serif !important;
}

.login-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-panel h2 {
  max-width: 100%;
  margin: 0;
  margin-top: 20px;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.1;
}

.login-lead {
  margin-top: -8px;
  color: rgba(236, 236, 240, .9);
}

.login-news {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 30px 0 0 0;
  padding: 0;
  list-style: none;
}

.login-news li {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(236, 236, 240, .2);
  border-radius: 14px;
  background: rgba(7, 41, 64, .64);
  transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
}

.login-news li:hover {
  transform: translateY(-2px);
  border-color: var(--primary-green);
  background: rgba(7, 41, 64, .82);
  box-shadow: 0 14px 28px -18px rgba(0, 0, 0, .6);
}

.login-news li:focus-within {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(31, 164, 168, .45);
}

.login-news .login-number {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--primary-green);
  color: var(--white);
    font-family: Roboto, sans-serif !important;
  font-size: 15px;
  font-weight: 700;
}

.login-news h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.login-news p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 4px;
  color: rgba(236, 236, 240, .85);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 14px;
}

.login-news a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding-bottom: 1px;
  border-bottom: 2px solid var(--primary-green);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.login-news a::after {
  position: absolute;
  inset: 0;
  content: '';
}

.login-news a:hover {
  color: var(--primary-green);
}

.login-news a:focus-visible {
  outline: 3px solid var(--primary-green);
  outline-offset: 4px;
}

.login-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}

.login-card {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.login-logo {
  align-self: center;
  display: block;
  width: 240px;
  max-width: 85%;
  height: auto;
  object-fit: contain;
}

.login-page.login-recovery-mode { grid-template-columns: minmax(0, 1fr); padding: 0; background: var(--surface); }
    .login-recovery-mode .login-panel { display: none; }
    .login-recovery-mode .login-stage { min-height: 100vh; align-items: flex-start; padding: 64px 24px; }
    .login-recovery-mode .login-card { max-width: 460px; gap: 32px; }
    .login-recovery-mode .login-logo { align-self: flex-start; width: 280px; max-width: 82%; }
    .login-recovery-view { display: flex; flex-direction: column; gap: 28px; }
    .login-recovery-head { display: flex; flex-direction: column; gap: 8px; }
    .login-recovery-title { font-family: 'DM Sans', system-ui, sans-serif; font-size: 18px; font-weight: 500; line-height: 1.4; }
    .login-recovery-copy { color: var(--ink-2); font-size: 14px; }
    .login-recovery-role { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin: 0; padding: 0; border: 0; }
    .login-recovery-role legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    .login-recovery-role label { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); cursor: pointer; }
    .login-recovery-role input { width: 16px; height: 16px; margin: 0; accent-color: var(--jade); }
    .login-recovery-submit { min-height: 54px; background: var(--spruce); color: #fff; box-shadow: none; }
    .login-recovery-submit:hover { background: var(--spruce-2); }
    .login-recovery-back { min-height: 32px; align-self: flex-start; gap: 7px; color: var(--ink); text-decoration: none; }
    .login-recovery-back svg { color: var(--jade); }

.login-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--grey);
}

.login-tab {
  min-width: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--accent2-2);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
  text-decoration:none;
}

.login-tab:focus,
.login-tab:hover{
  background: rgba(255, 255, 255, .0.1);
  color: var(--accent2);
  text-decoration:none;
}

.login-tab[aria-selected="true"] {
  background: #fff;
  color: var(--accent2);
  box-shadow: 0 1px 2px rgba(7, 41, 64, .18), 0 4px 10px -6px rgba(7, 41, 64, .35);
  text-decoration:none;
}

.login-tab[aria-selected="true"] svg {
  color: var(--primary-green);
}

.login-tabpanel {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 28px;
}

.login-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-eyebrow {
  color: var(--primary-green);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}

.login-head h1 {
  color: var(--accent2);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.1;
}

.login-head p {
  color: var(--accent2-2);
  font-size: 14px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.login-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-label {
  color: var(--accent2);
  font-size: 14px;
  font-weight: 600;
}

.login-field {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--field);
  color: var(--accent2-2);
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.login-field:hover {
  border-color: #8e96a8;
}

.login-field:focus-within {
  border-color: var(--primary-green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(31, 164, 168, .16);
  color: var(--primary-green);
}

.login-field.login-invalid {
  border-color: var(--err);
  background: var(--err-bg);
  color: var(--err);
}

.login-field.login-invalid:focus-within {
  box-shadow: 0 0 0 4px rgba(180, 35, 24, .16);
}

.login-field>svg {
  flex: none;
}

.login-field input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--accent2);
  font-size: 16px;
}

.login-field input::placeholder {
  color: #5c6e7c;
  opacity: 1;
}

.login-eye {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  margin-right: -10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--accent2-2);
  cursor: pointer;
}

.login-eye:hover {
  background: rgba(31, 164, 168, .09);
  color: var(--primary-green);
}

.login-error {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--err);
  font-size: 14px;
  font-weight: 500;
}

.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #f0c4be;
  border-radius: 12px;
  background: rgb(180, 35, 24, 0.07);
  color: var(--err);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 0;
}

.login-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.login-check {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent2);
  font-size: 15px;
  cursor: pointer;
}

.login-check input {
  width: 20px;
  height: 20px;
  display: grid;
  flex: none;
  place-items: center;
  margin: 0;
  appearance: none;
  border: 1.5px solid #8e96a8;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.login-check input:checked {
  border-color: var(--primary-green);
  background: var(--primary-green);
}

.login-check input:checked::after {
  width: 5px;
  height: 10px;
  transform: rotate(45deg) translate(-1px, -1px);
  border: solid var(--accent2);
  border-width: 0 2.5px 2.5px 0;
  content: '';
}

.login-link {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent2);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  margin-bottom: 0;
}

.login-link i {
  margin-right:5px;
}

.login-link:hover {
  color: var(--primary-green);
}

.login-back-link {
  align-self: flex-start;
}

.login-button {
  position: relative;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  background: var(--accent2);
  color: var(--white);
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(7, 41, 64, .4), 0 8px 18px -10px rgba(7, 41, 64, .6);
  transition: background .15s, transform .08s, box-shadow .15s;
}

.login-button:hover {
  background: var(--primary-green);
}

.login-button:active {
  transform: translateY(1px);
  background: var(--primary-green-active);
  box-shadow: none;
}

.login-button:disabled {
  background: var(--primary-green-hover);
  cursor: progress;
}

.login-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(7, 41, 64, .3);
  border-top-color: var(--accent2);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.login-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--accent2-2);
  font-size: 14px;
}

.login-foot b {
  color: var(--accent2);
  font-weight: 600;
}

.login-alternative {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.login-alternative small {
  color: var(--accent2-2);
  font-size: 14px;
}

.login-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.login-pill {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--accent2);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.login-pill:hover {
  border-color: var(--primary-green);
  background: var(--field);
  color: var(--primary-green-active);
}

.login-done {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.login-tick {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(31, 164, 168, .16);
  color: var(--accent2);
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--accent2);
  outline-offset: 3px;
}

.login-tab:focus-visible,
.login-eye:focus-visible,
.login-check input:focus-visible {
  outline-color: var(--primary-green);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1100px) {
  .login-panel {
    padding: 40px 36px;
  }

  .login-panel h2 {
    font-size: 34px;
  }
}

@media (max-width: 900px) {
  .login-page {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }

  .login-panel {
    min-height: 0;
    padding: 32px 28px 36px;
    border-radius: 24px;
  }

  .login-panel h2 {
    margin-top: 72px;
    font-size: 34px;
  }

  .login-stage {
    padding: 24px 8px 8px;
  }
}

@media (max-width: 560px) {
  .login-page {
    gap: 0;
    padding: 0;
    background: var(--white);
  }

  .login-panel {
    padding: 24px 20px 32px;
    border-radius: 24px 24px 0 0;
  }

  .login-panel h2 {
    margin-top: 56px;
    font-size: 28px;
  }

  .login-news li {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .login-news .login-number {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .login-stage {
    padding: 24px 20px 28px;
  }

  .login-card {
    gap: 22px;
  }

  .login-head h1 {
    font-size: 28px;
  }

  .login-tab {
    gap: 6px;
    font-size: 14px;
  }
  
      .login-recovery-mode .login-stage { min-height: 100vh; padding: 32px 24px; }
      .login-recovery-mode .login-card { gap: 30px; }
      .login-recovery-mode .login-logo { width: 250px; }
}

@media (prefers-reduced-motion: reduce) {
  .login-spinner {
    animation-duration: 2s;
  }

  .login-news li:hover {
    transform: none;
  }
}