:root {
  --navy: #14324b;
  --navy-deep: #0e283c;
  --teal: #168c80;
  --teal-dark: #117267;
  --teal-soft: #e9f6f4;
  --gold: #f2b84b;
  --ink: #20384b;
  --muted: #788895;
  --line: #dbe5eb;
  --soft: #f4f7f9;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body,
button,
input {
  font-family:
    Inter, "Segoe UI", Arial, sans-serif;
}

body {
  background: var(--white);
  color: var(--ink);
}

.login-page {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(440px, 0.85fr);
  min-height: 100vh;
}

.brand-panel {
  position: relative;
  display: grid;
  overflow: hidden;
  place-items: center;
  padding: 56px;
  background:
    linear-gradient(rgba(20, 50, 75, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 50, 75, 0.025) 1px, transparent 1px),
    var(--soft);
  background-size: 34px 34px;
}

.brand-panel::before,
.brand-panel::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.brand-panel::before {
  top: -170px;
  left: -150px;
  width: 430px;
  height: 430px;
  border: 65px solid rgba(22, 140, 128, 0.055);
}

.brand-panel::after {
  right: -90px;
  bottom: -130px;
  width: 340px;
  height: 340px;
  background: rgba(242, 184, 75, 0.07);
}

.brand-content {
  position: relative;
  z-index: 1;
  width: min(530px, 100%);
  text-align: center;
}

.portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 27px;
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.portal-badge::before,
.portal-badge::after {
  width: 22px;
  height: 1px;
  background: rgba(22, 140, 128, 0.35);
  content: "";
}

.brand-logo {
  display: block;
  width: min(285px, 62%);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.brand-content h2 {
  margin: 30px 0 0;
  color: var(--navy);
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.brand-content p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.form-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px clamp(38px, 5vw, 76px);
  border-left: 1px solid #edf1f3;
  background: var(--white);
}

.form-panel::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal) 0 76%, var(--gold) 76%);
  content: "";
}

.login-box {
  width: 100%;
  max-width: 430px;
}

.handshake-image {
  display: block;
  width: 112px;
  height: 68px;
  margin: 0 auto 20px;
  object-fit: contain;
  filter: saturate(0.85);
}

.login-kicker {
  display: block;
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-align: center;
}

.login-box h1 {
  margin: 11px 0 0;
  color: var(--navy);
  font-size: clamp(26px, 2.3vw, 34px);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -0.03em;
  text-align: center;
}

.welcome-text {
  display: none;
}

.login-message {
  margin: 10px 0 31px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.form-group {
  margin-bottom: 17px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #4f6678;
  font-size: 12px;
  font-weight: 700;
}

.form-group input {
  display: block;
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: #f8fafb;
  color: var(--ink);
  font-size: 14px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.form-group input:hover {
  border-color: #c8d6df;
}

.form-group input:focus {
  border-color: var(--teal);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(22, 140, 128, 0.1);
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 67px;
}

.password-toggle {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 64px;
  height: 48px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0 9px 9px 0;
  background: transparent;
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.password-toggle:hover {
  background: var(--teal-soft);
}

.login-button {
  display: flex;
  width: 100%;
  height: 50px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-top: 24px;
  border: 1px solid var(--teal);
  border-radius: 10px;
  background: var(--teal);
  box-shadow: 0 10px 22px rgba(22, 140, 128, 0.18);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.login-button span {
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.login-button:hover {
  transform: translateY(-1px);
  background: var(--teal-dark);
  box-shadow: 0 13px 27px rgba(22, 140, 128, 0.24);
}

.login-button:hover span {
  transform: translateX(3px);
}

.login-button:active {
  transform: translateY(0);
}

.alert {
  margin: 0 0 20px;
  padding: 12px 14px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.5;
}

.alert-error {
  border: 1px solid #f0c8c8;
  background: #fff5f5;
  color: #b83a3a;
}

@media (max-height: 700px) and (min-width: 861px) {
  .handshake-image {
    width: 90px;
    height: 52px;
    margin-bottom: 13px;
  }

  .login-message {
    margin-bottom: 22px;
  }

  .form-group {
    margin-bottom: 13px;
  }
}

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

  .brand-panel {
    min-height: 260px;
    padding: 38px 24px;
  }

  .portal-badge {
    margin-bottom: 18px;
  }

  .brand-logo {
    width: min(220px, 58%);
  }

  .brand-content h2 {
    margin-top: 18px;
    font-size: 21px;
  }

  .form-panel {
    padding: 45px 25px 52px;
    border-top: 1px solid #edf1f3;
    border-left: 0;
  }
}

@media (max-width: 520px) {
  .brand-panel {
    min-height: 205px;
    padding: 29px 20px;
  }

  .portal-badge {
    font-size: 9px;
  }

  .brand-logo {
    width: min(185px, 62%);
  }

  .brand-content h2 {
    margin-top: 15px;
    font-size: 18px;
  }

  .brand-content p {
    font-size: 11px;
  }

  .form-panel {
    padding: 35px 20px 40px;
  }

  .handshake-image {
    width: 92px;
    height: 54px;
  }

  .login-box h1 {
    font-size: 25px;
  }
}
