* {
  box-sizing: border-box;
}

:root {
  --login2-blue: #172a4d;
  --login2-blue-soft: #203965;
  --login2-line: rgba(171, 198, 232, 0.2);
  --login2-text: #f6f9ff;
  --login2-muted: #9fb5d4;
  --login2-green: #5ec65c;
  --login2-red: #ff4f4f;
  --login2-cyan: #1592e6;
}

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

html {
  font-size: 80%;
}

html.login-public-modal-open {
  overflow: hidden;
}

body {
  background:
    radial-gradient(circle at 18% 16%, rgba(83, 143, 220, 0.22), transparent 32rem),
    radial-gradient(circle at 84% 74%, rgba(94, 198, 92, 0.13), transparent 30rem),
    linear-gradient(145deg, #252b2c 0%, #3b4240 48%, #eef4e9 100%);
  background-attachment: fixed;
  color: #26313f;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  margin: 0;
}

button,
input {
  font: inherit;
}

.login2-shell {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.login2-panel {
  background: #f8f7f3;
  border: 1px solid rgba(23, 42, 77, .88);
  border-radius: 12px;
  box-shadow: 0 28px 64px rgba(4, 14, 28, 0.38);
  max-width: 76rem;
  overflow: hidden;
  width: min(100%, 76rem);
}

.login2-brandbar {
  align-items: center;
  background: var(--login2-blue);
  border-bottom: 1px solid var(--login2-line);
  color: var(--login2-text);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 4.15rem;
  padding: 0.95rem 1.25rem;
}

.login2-brand {
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  text-shadow: 0 0 8px rgba(255, 255, 255, .16), 0 1px 1px rgba(0, 0, 0, .22);
  white-space: nowrap;
}

.login2-brand:hover,
.login2-brand:focus {
  color: #fff;
  text-decoration: none;
}

.login2-brand__green {
  color: var(--login2-green);
}

.login2-brand__red {
  color: var(--login2-red);
}

.login2-brand__blue {
  color: var(--login2-cyan);
}

.login2-status {
  align-items: center;
  background: rgba(11, 27, 52, 0.55);
  border: 1px solid rgba(160, 190, 230, 0.2);
  border-radius: 999px;
  color: #c9d9ef;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 850;
  gap: 0.35rem;
  line-height: 1;
  padding: 0.42rem 0.65rem;
  text-transform: uppercase;
}

.login2-status .material-icons {
  font-size: 1rem;
}

.login2-grid {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.72fr);
}

.login2-copy {
  background:
    linear-gradient(135deg, rgba(23, 42, 77, 0.97), rgba(32, 57, 101, 0.95)),
    linear-gradient(45deg, rgba(255, 255, 255, .08), transparent);
  color: var(--login2-text);
  min-height: 31rem;
  padding: clamp(2rem, 5vw, 4rem);
}

.login2-copy__eyebrow {
  color: #9dc2f4;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.login2-copy h1 {
  font-size: clamp(1.85rem, 3vw, 3.15rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.04;
  margin: 0 0 1rem;
  max-width: 13ch;
}

.login2-copy p {
  color: #c6d7ee;
  font-size: clamp(0.92rem, 1.1vw, 1rem);
  font-weight: 650;
  line-height: 1.5;
  margin: 0;
  max-width: 30rem;
}

.login2-future {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.8rem;
}

.login2-future span {
  align-items: center;
  background: rgba(7, 20, 43, 0.48);
  border: 1px solid rgba(160, 190, 230, 0.18);
  border-radius: 999px;
  color: #dce9fb;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.32rem;
  line-height: 1;
  padding: 0.45rem 0.7rem;
}

.login2-future .material-icons {
  color: #91b8ec;
  font-size: 1rem;
}

.login2-card {
  align-self: center;
  background: #ffffff;
  border: 1px solid #dfe6ef;
  border-radius: 10px;
  box-shadow: 0 18px 38px rgba(23, 42, 77, 0.16);
  margin: clamp(1.25rem, 3.2vw, 2.5rem);
  padding: clamp(1.2rem, 2.4vw, 1.75rem);
}

.login2-card__head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.login2-card h2 {
  color: #172a4d;
  font-size: 1.55rem;
  font-weight: 850;
  margin: 0;
}

.login2-card p {
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0.2rem 0 0;
}

.login2-card__icon {
  align-items: center;
  background: #edf4ff;
  border: 1px solid #d4e4f7;
  border-radius: 999px;
  color: #275db0;
  display: inline-flex;
  height: 2.55rem;
  justify-content: center;
  width: 2.55rem;
}

.login2-alert {
  align-items: flex-start;
  background: #fff0f2;
  border: 1px solid #f0b8c0;
  border-left: 4px solid #b32032;
  border-radius: 8px;
  color: #842333;
  display: flex;
  font-size: 0.86rem;
  font-weight: 800;
  gap: 0.45rem;
  line-height: 1.25;
  margin-bottom: 1rem;
  padding: 0.65rem 0.75rem;
}

.login2-alert--ok {
  background: #eef8ee;
  border-color: #b8dfb8;
  border-left-color: #2f8a3b;
  color: #1f6530;
}

.login2-alert .material-icons {
  font-size: 1.1rem;
}

.login2-card label {
  color: #3b4554;
  display: block;
  font-size: 0.78rem;
  font-weight: 850;
  margin: 0.82rem 0 0.35rem;
  text-transform: uppercase;
}

.login2-field {
  align-items: center;
  background: #f8fbff;
  border: 1px solid #cfdded;
  border-radius: 9px;
  display: flex;
  gap: 0.45rem;
  padding: 0 0.72rem;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.login2-field:focus-within {
  background: #ffffff;
  border-color: #7ea4d5;
  box-shadow: 0 0 0 4px rgba(39, 93, 176, 0.12);
}

.login2-field .material-icons {
  color: #6f8bad;
  font-size: 1.15rem;
}

.login2-field input {
  background: transparent;
  border: 0;
  color: #172a4d;
  font-size: 0.98rem;
  font-weight: 750;
  min-height: 2.9rem;
  outline: 0;
  width: 100%;
}

.login2-field input::placeholder {
  color: #9aa8ba;
}

.login2-submit {
  align-items: center;
  background: #185a98;
  border: 1px solid #164f86;
  border-radius: 9px;
  box-shadow: 0 10px 22px rgba(24, 90, 152, 0.24);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.98rem;
  font-weight: 850;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 1.1rem;
  min-height: 2.95rem;
  padding: 0.72rem 1rem;
  width: 100%;
}

.login2-submit:hover,
.login2-submit:focus {
  background: #164f86;
}

.login2-submit .material-icons {
  font-size: 1.15rem;
}

.login2-actions {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.75rem;
}

.login2-actions button {
  align-items: center;
  background: #f2f5f8;
  border: 1px solid #dde5ef;
  border-radius: 8px;
  color: #7b8794;
  display: inline-flex;
  font-size: 0.77rem;
  font-weight: 850;
  gap: 0.28rem;
  justify-content: center;
  line-height: 1;
  min-height: 2.2rem;
  padding: 0.48rem 0.5rem;
  cursor: pointer;
}

.login2-actions .material-icons {
  font-size: 0.98rem;
}

.login2-divider {
  align-items: center;
  color: #8a96a6;
  display: flex;
  font-size: 0.75rem;
  font-weight: 850;
  gap: 0.65rem;
  margin: 0.95rem 0 0.75rem;
  text-transform: uppercase;
}

.login2-worker-box {
  background: #ffffff;
}

.login2-worker-box__head {
  align-items: flex-start;
  color: #172a4d;
  display: flex;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
}

.login2-worker-box__head > .material-icons {
  background: #e8f2ff;
  border: 1px solid #d4e4f7;
  border-radius: 999px;
  color: #275db0;
  font-size: 1.15rem;
  padding: 0.32rem;
}

.login2-worker-box h3 {
  color: #172a4d;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.1;
  margin: 0;
}

.login2-worker-box p {
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0.18rem 0 0;
}

.login2-submit--worker {
  background: #2f7d42;
  border-color: #286d39;
  box-shadow: 0 10px 22px rgba(47, 125, 66, 0.18);
}

.login2-submit--worker:hover,
.login2-submit--worker:focus {
  background: #286d39;
}

.login-public-modal {
  align-items: center;
  display: none;
  inset: 0;
  justify-content: center;
  padding: 1.25rem;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  z-index: 9999;
}

.login-public-modal.is-open {
  display: flex;
}

.login-public-modal__backdrop {
  background: rgba(9, 19, 36, 0.66);
  inset: 0;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
}

.login-public-modal__dialog {
  background: #ffffff;
  border: 1px solid #dbe7f5;
  border-radius: 12px;
  box-shadow: 0 28px 70px rgba(4, 14, 28, 0.38);
  max-width: 27rem;
  padding: 1rem;
  position: relative;
  width: min(100%, 27rem);
}

.login-public-modal__close {
  align-items: center;
  appearance: none;
  background: #eef3f8;
  border: 1px solid #dbe5f0;
  border-radius: 999px;
  color: #4b5b6f;
  cursor: pointer;
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  line-height: 1;
  margin: 0;
  min-height: 0;
  padding: 0;
  position: absolute;
  right: 0.7rem;
  top: 0.7rem;
  width: 2rem;
  z-index: 2;
}

.login-public-modal__close .material-icons {
  font-size: 1.1rem;
}

.login2-divider::before,
.login2-divider::after {
  background: #dfe6ef;
  content: "";
  flex: 1;
  height: 1px;
}

.login2-google {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dfe6ef;
  border-radius: 9px;
  color: #26313f;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 850;
  gap: 0.55rem;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
  width: 100%;
}

.login2-google:hover,
.login2-google:focus {
  border-color: #b9cbe2;
  box-shadow: 0 10px 20px rgba(23, 42, 77, 0.12);
  color: #172a4d;
  text-decoration: none;
  transform: translateY(-1px);
}

.login2-google:disabled {
  background: #f2f5f8;
  color: #8996a7;
  cursor: not-allowed;
  transform: none;
}

.login2-google__mark {
  align-items: center;
  background: conic-gradient(from -45deg, #4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0 100%);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 850;
  height: 1.55rem;
  justify-content: center;
  line-height: 1;
  width: 1.55rem;
}

.login2-link-result {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 28px 64px rgba(4, 14, 28, 0.38);
  color: #26313f;
  max-width: 34rem;
  padding: 2rem;
  text-align: center;
  width: min(100%, 34rem);
}

.login2-link-result > .material-icons {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 2.2rem;
  height: 4rem;
  justify-content: center;
  margin-bottom: 1rem;
  width: 4rem;
}

.login2-link-result--ok > .material-icons {
  background: #e8f7ea;
  color: #2f9d4a;
}

.login2-link-result--error > .material-icons {
  background: #fff0f2;
  color: #b32032;
}

.login2-link-result h1 {
  color: #172a4d;
  font-size: 1.55rem;
  font-weight: 850;
  margin: 0 0 .45rem;
}

.login2-link-result p {
  color: #5f6b7a;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 1.2rem;
}

.login2-link-result a {
  align-items: center;
  background: #185a98;
  border-radius: 9px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 2.6rem;
  padding: .65rem 1rem;
  text-decoration: none;
}

@media (max-width: 860px) {
  html {
    font-size: 87.5%;
  }

  .login2-shell {
    align-items: stretch;
    padding: 1rem;
  }

  .login2-panel {
    border-radius: 10px;
  }

  .login2-brandbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .login2-grid {
    grid-template-columns: 1fr;
  }

  .login2-copy {
    min-height: auto;
  }

  .login2-copy h1 {
    max-width: 14ch;
  }
}

@media (max-width: 520px) {
  .login2-shell {
    padding: 0;
  }

  .login2-panel {
    border-radius: 0;
    min-height: 100vh;
  }

  .login2-card {
    margin: 1rem;
  }

  .login2-actions {
    grid-template-columns: 1fr;
  }
}
