.boss-surface {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 16%, rgba(32, 116, 255, 0.16), transparent 32rem),
    radial-gradient(circle at 82% 78%, rgba(57, 196, 142, 0.1), transparent 30rem),
    #060b16;
}

.boss-auth-screen {
  width: min(1120px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 64px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  align-items: center;
  justify-content: stretch;
  gap: 72px;
  background: transparent;
  box-shadow: none;
}

.boss-auth-brand {
  align-items: flex-start;
}

.boss-auth-brand .brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.boss-auth-brand h1 {
  max-width: 620px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: #f5f8ff;
}

.boss-auth-brand p {
  max-width: 620px;
  line-height: 1.8;
  color: rgba(226, 234, 250, 0.72);
}

.boss-auth-card {
  width: 100%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.boss-auth-security {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(83, 209, 160, 0.25);
  border-radius: 16px;
  background: rgba(57, 196, 142, 0.08);
}

.boss-auth-security > svg {
  width: 24px;
  height: 24px;
  margin: 5px 0 0 6px;
  color: #65dab0;
}

.boss-auth-security div {
  display: grid;
  gap: 4px;
}

.boss-auth-security strong {
  color: #174c42;
  font-size: 14px;
}

.boss-auth-security span {
  color: #50645f;
  font-size: 12px;
  line-height: 1.65;
}

.boss-auth-card .auth-form select,
.boss-auth-card .auth-form textarea {
  width: 100%;
  border: 1px solid #dfe6e8;
  border-radius: 10px;
  padding: 11px 13px;
  outline: none;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.boss-auth-card .auth-form select:focus,
.boss-auth-card .auth-form textarea:focus {
  border-color: rgba(0, 121, 93, 0.44);
  box-shadow: 0 0 0 4px rgba(0, 121, 93, 0.08);
}

.boss-access-exit {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(7, 31, 35, 0.1);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.boss-access-exit a {
  width: fit-content;
  color: #126d5d;
  font-weight: 650;
  text-decoration: none;
}

.boss-access-exit a:hover,
.boss-access-exit a:focus-visible {
  text-decoration: underline;
}

.boss-reauth-root {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 8, 16, 0.72);
  backdrop-filter: blur(10px);
}

.boss-reauth-root.hidden {
  display: none;
}

.boss-reauth-card {
  width: min(100%, 440px);
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(7, 31, 35, 0.1);
  border-radius: 20px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.boss-reauth-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #087d64;
  background: #eaf6f2;
}

.boss-reauth-card > div:nth-child(2) > span {
  color: #087d64;
  font-size: 12px;
  font-weight: 800;
}

.boss-reauth-card h2 {
  margin: 5px 0 0;
  font-size: 20px;
}

.boss-reauth-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.boss-reauth-card form {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
}

.boss-reauth-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.boss-reauth-card input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #dfe6e8;
  border-radius: 10px;
  padding: 0 13px;
  outline: none;
}

.boss-reauth-card input:focus {
  border-color: rgba(0, 121, 93, 0.44);
  box-shadow: 0 0 0 4px rgba(0, 121, 93, 0.08);
}

.boss-reauth-card [data-boss-reauth-error] {
  min-height: 18px;
  margin: 0;
  color: #b42318;
  font-size: 12px;
}

.boss-reauth-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.boss-reauth-actions button {
  min-height: 42px;
  border: 1px solid #dfe6e8;
  border-radius: 10px;
  padding: 0 16px;
  font-weight: 800;
  background: #fff;
}

.boss-reauth-actions button.primary {
  border-color: #087d64;
  color: #fff;
  background: #087d64;
}

.boss-auth-footnote {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
}

@media (max-width: 860px) {
  .boss-auth-screen {
    width: min(520px, calc(100% - 32px));
    padding: 40px 0;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .boss-auth-brand h1 {
    font-size: clamp(32px, 10vw, 48px);
  }
}

@media (max-width: 480px) {
  .boss-auth-screen {
    width: min(100% - 20px, 440px);
    padding: 20px 0 32px;
  }

  .boss-auth-brand {
    gap: 12px;
  }

  .boss-auth-brand .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .boss-auth-security {
    grid-template-columns: 32px minmax(0, 1fr);
  }
}
