/* Sign-in page — Microsoft Entra ID (MSAL) login shell. */
/* Palette matches the Halliburton brand colors used in generate-application-assessment-deck.ps1. */
:root {
  --hal-red: #D6001C;
  --hal-red-dark: #A50015;
  --hal-ink: #1A1A1A;
  --hal-muted: #595959;
  --hal-hairline: #BFBFBF;
  --hal-panel: #F4F4F4;
}

.login-shell {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: linear-gradient(180deg, #fafafa 0%, #efefef 100%);
}

.login-shell::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--hal-red);
}

.login-card {
  width: min(420px, calc(100vw - 2rem));
  background: #fff;
  border: 1px solid var(--hal-hairline);
  border-top: 3px solid var(--hal-red);
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
  padding: 32px 28px 24px;
  text-align: center;
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.login-brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: var(--hal-red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login-brand-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--hal-red);
}

.login-eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hal-muted);
}

.login-card h1 {
  font-size: 21px;
  margin: 6px 0 0;
  color: var(--hal-ink);
}

.login-sub {
  margin: 10px 0 0;
  color: var(--hal-muted);
  font-size: 13px;
  line-height: 1.5;
}

.ms-signin-btn {
  margin-top: 24px;
  width: 100%;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--hal-hairline);
  border-radius: 3px;
  background: #fff;
  font: inherit;
  font-weight: 600;
  color: var(--hal-ink);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}

.ms-signin-btn:hover {
  background: var(--hal-panel);
  border-color: #a6a6a6;
}

.ms-signin-btn:focus-visible {
  outline: 2px solid var(--hal-red);
  outline-offset: 2px;
}

.ms-signin-btn:disabled {
  cursor: default;
  opacity: 0.65;
}

.ms-signin-btn svg {
  flex: none;
}

.login-status {
  margin-top: 16px;
  min-height: 18px;
  font-size: 12.5px;
  color: var(--hal-muted);
}

.login-status.error {
  color: var(--hal-red-dark);
  font-weight: 600;
}

.login-hint {
  margin-top: 18px;
  font-size: 12px;
  color: var(--hal-muted);
}

.login-footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--hal-hairline);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hal-muted);
}

/* Access page: someone Entra signed in but HAL EPM has not set up, or has deactivated. */
.access-card {
  width: min(520px, calc(100vw - 2rem));
}

.access-icon {
  width: 44px;
  height: 44px;
  margin: 18px auto 4px;
  border-radius: 50%;
  border: 2px solid var(--hal-red);
  color: var(--hal-red-dark);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.access-details {
  margin: 20px 0 0;
  padding: 12px 14px;
  background: var(--hal-panel);
  border: 1px solid var(--hal-hairline);
  border-radius: 4px;
  text-align: left;
  font-size: 13px;
}

.access-details div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
  padding: 3px 0;
}

.access-details dt {
  color: var(--hal-muted);
  font-weight: 600;
}

.access-details dd {
  margin: 0;
  color: var(--hal-ink);
  overflow-wrap: anywhere;
}

.access-next-title {
  margin: 20px 0 6px;
  font-size: 14px;
  text-align: left;
  color: var(--hal-ink);
}

.access-steps {
  margin: 0;
  padding-left: 20px;
  text-align: left;
  font-size: 13px;
  line-height: 1.6;
  color: var(--hal-ink);
}

.access-actions {
  display: flex;
  gap: 10px;
}

.access-actions .ms-signin-btn {
  margin-top: 22px;
}

.access-primary {
  background: var(--hal-red);
  border-color: var(--hal-red);
  color: #fff;
}

.access-primary:hover {
  background: var(--hal-red-dark);
  border-color: var(--hal-red-dark);
}
