* {
  box-sizing: border-box;
}

.crewsight-login-body {
  min-height: 100vh;
  margin: 0;
  background: #f4f7fb;
}

.crewsight-login-page {
  display: grid;
  grid-template-columns:
    minmax(420px, 1fr)
    minmax(420px, 0.8fr);
  min-height: 100vh;
}


.crewsight-login-brand-panel {
  display: flex;
  min-height: 100vh;
  padding: 64px;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(
      145deg,
      #07162f 0%,
      #0b2145 55%,
      #12376c 100%
    );
  color: #ffffff;
}


.crewsight-login-brand {
  display: flex;
  width: 100%;
  max-width: 920px;
  gap: 28px;
  align-items: flex-start;
}


.crewsight-login-logo {
  width: 210px;
  height: 210px;
  margin-top: 28px;
  flex: 0 0 auto;
  object-fit: contain;
}


.crewsight-login-brand-label {
  display: block;
  margin-bottom: 12px;
  color: #93c5fd;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


.crewsight-login-brand h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(
    2.4rem,
    4vw,
    4.7rem
  );
  line-height: 1.02;
}


.crewsight-login-brand p {
  max-width: 620px;
  margin: 24px 0 0;
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.7;
}


.crewsight-login-brand-footer {
  display: flex;
  gap: 12px 28px;
  flex-wrap: wrap;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 700;
}


.crewsight-login-form-panel {
  display: flex;
  min-height: 100vh;
  padding: 48px;
  align-items: center;
  justify-content: center;
}


.crewsight-login-card {
  width: min(
    460px,
    100%
  );
  padding: 34px;
  border: 1px solid #dbe3ee;
  border-radius: 22px;
  background: #ffffff;
  box-shadow:
    0 24px 70px
    rgba(
      15,
      23,
      42,
      0.12
    );
}


.crewsight-login-heading {
  margin-bottom: 28px;
}


.crewsight-login-eyebrow {
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


.crewsight-login-heading h2 {
  margin: 7px 0 8px;
  color: #0f172a;
  font-size: 2rem;
}


.crewsight-login-heading p {
  margin: 0;
  color: #64748b;
  line-height: 1.5;
}


.crewsight-login-form {
  display: grid;
  gap: 18px;
}


.crewsight-login-field {
  display: grid;
  gap: 7px;
}


.crewsight-login-field > span {
  color: #1e293b;
  font-size: 0.78rem;
  font-weight: 800;
}


.crewsight-login-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid #cbd5e1;
  border-radius: 11px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
}


.crewsight-login-field input:focus {
  border-color: #2563eb;
  outline:
    3px solid
    rgba(
      37,
      99,
      235,
      0.12
    );
}


.crewsight-login-password-wrap {
  position: relative;
}


.crewsight-login-password-wrap input {
  padding-right: 72px;
}


.crewsight-login-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  min-height: 34px;
  padding: 0 10px;
  transform:
    translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #2563eb;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
}


.crewsight-login-password-toggle:hover {
  background: #eff6ff;
}


.crewsight-login-message {
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
}


.crewsight-login-message.error {
  border:
    1px solid
    #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}


.crewsight-login-message.success {
  border:
    1px solid
    #86efac;
  background: #f0fdf4;
  color: #15803d;
}


.crewsight-login-submit {
  min-height: 48px;
  border: 1px solid #2563eb;
  border-radius: 11px;
  background: #2563eb;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}


.crewsight-login-submit:hover {
  background: #1d4ed8;
}


.crewsight-login-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}


.crewsight-login-help {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}


.crewsight-login-help strong {
  display: block;
  color: #334155;
  font-size: 0.8rem;
}


.crewsight-login-help p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.76rem;
}


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

  .crewsight-login-brand-panel {
    min-height: auto;
    padding: 40px 28px;
  }

  .crewsight-login-brand h1 {
    font-size: 2.5rem;
  }

  .crewsight-login-brand-footer {
    margin-top: 50px;
  }

  .crewsight-login-form-panel {
    min-height: auto;
    padding: 40px 22px;
  }
}


@media (
  max-width: 560px
) {
  .crewsight-login-brand {
    display: grid;
  }

  .crewsight-login-logo {
    width: 62px;
    height: 62px;
  }

  .crewsight-login-card {
    padding: 24px;
  }

  .crewsight-login-form-panel {
    padding: 24px 16px;
  }
}