/* OSA-BOS sign-in experience */
.osa-auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  background: var(--osa-background);
  color: var(--osa-on-surface);
}
.osa-auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  min-height: 100vh;
  padding: clamp(32px, 5vw, 76px);
  color: #f5f8ff;
  background:
    radial-gradient(circle at 82% 18%, rgba(78, 139, 255, .32), transparent 34%),
    radial-gradient(circle at 12% 88%, rgba(67, 102, 204, .22), transparent 36%),
    linear-gradient(145deg, #071326 0%, #0b1d3a 52%, #102b55 100%);
}
.osa-auth-brand::after {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -220px;
  bottom: -260px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(255,255,255,.025), 0 0 0 96px rgba(255,255,255,.02);
  pointer-events: none;
}
.osa-auth-brand__top,
.osa-auth-brand__content,
.osa-auth-brand__footer { position: relative; z-index: 1; }
.osa-auth-brand__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 750;
  font-size: 19px;
  letter-spacing: .02em;
}
.osa-auth-brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 13px;
  background: linear-gradient(145deg, #3478f6, #1745a5);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  font-size: 21px;
}
.osa-auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #a9c7ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.osa-auth-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}
.osa-auth-brand h1 {
  max-width: 640px;
  margin: 22px 0 18px;
  color: #fff;
  font-size: clamp(38px, 4.8vw, 64px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.045em;
}
.osa-auth-brand__lead {
  max-width: 510px;
  color: #c0cce0;
  font-size: 16px;
  line-height: 1.75;
}
.osa-auth-feature-list {
  display: grid;
  gap: 17px;
  margin-top: 42px;
  padding: 0;
  list-style: none;
}
.osa-auth-feature-list li {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #e1eaff;
  font-size: 14px;
}
.osa-auth-feature-list i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(153,190,255,.22);
  border-radius: 10px;
  background: rgba(101,151,241,.13);
  color: #a9c7ff;
}
.osa-auth-brand__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #91a3bf;
  font-size: 12px;
}
.osa-auth-brand__footer strong { color: #dce8ff; font-weight: 600; }
.osa-auth-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 76px);
  background: var(--osa-surface);
}
.osa-auth-panel__top {
  display: flex;
  justify-content: flex-end;
  width: min(100%, 440px);
  margin-bottom: 38px;
}
.osa-auth-theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--osa-outline-variant);
  border-radius: 12px;
  background: var(--osa-card-bg);
  color: var(--osa-on-surface);
}
.osa-auth-card {
  width: min(100%, 440px);
}
.osa-auth-mobile-brand { display: none; }
.osa-auth-title {
  margin: 0;
  color: var(--osa-on-surface);
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -.035em;
}
.osa-auth-subtitle {
  margin: 10px 0 30px;
  color: var(--osa-on-surface-variant);
  font-size: 14px;
  line-height: 1.65;
}
.osa-auth-field { margin-bottom: 20px; }
.osa-auth-field .osa-form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--osa-on-surface);
  font-size: 13px;
  font-weight: 650;
}
.osa-auth-input-wrap { position: relative; }
.osa-auth-input-wrap > .bi {
  position: absolute;
  top: 50%;
  left: 15px;
  z-index: 2;
  transform: translateY(-50%);
  color: var(--osa-on-surface-variant);
  pointer-events: none;
}
.osa-auth-input {
  min-height: 50px;
  padding: 12px 46px 12px 44px !important;
  border-radius: 11px !important;
  font-size: 14px !important;
}
.osa-auth-input:focus {
  box-shadow: 0 0 0 4px var(--osa-focus-ring) !important;
}
.osa-auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 9px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--osa-on-surface-variant);
}
.osa-auth-password-toggle:hover { background: var(--osa-surface-container); color: var(--osa-on-surface); }
.osa-auth-submit {
  min-height: 50px;
  margin-top: 7px;
  border-radius: 11px !important;
  font-size: 14px;
  font-weight: 650;
}
.osa-auth-submit:disabled { opacity: .7; cursor: wait; }
.osa-auth-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 25px;
  color: var(--osa-on-surface-variant);
  font-size: 12px;
}
.osa-auth-security i { color: var(--osa-success); }
.osa-auth-config-warning { width: min(100%, 440px); }
.osa-auth-error { border-radius: 10px; font-size: 13px; }
.osa-auth-panel__copyright {
  width: min(100%, 440px);
  margin-top: 48px;
  color: var(--osa-on-surface-variant);
  font-size: 11px;
  text-align: center;
}
@media (max-width: 900px) {
  .osa-auth-page { grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr); }
  .osa-auth-brand { padding: 34px; }
  .osa-auth-panel { padding: 34px; }
  .osa-auth-brand h1 { font-size: clamp(34px, 5vw, 48px); }
}
@media (max-width: 720px) {
  .osa-auth-page { display: flex; flex-direction: column; min-height: 100vh; }
  .osa-auth-brand { display: none; }
  .osa-auth-panel { flex: 1; justify-content: flex-start; padding: 28px 22px 24px; }
  .osa-auth-panel__top { margin-bottom: 38px; }
  .osa-auth-mobile-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 34px;
  }
  .osa-auth-mobile-brand .osa-auth-brand__mark { width: 38px; height: 38px; }
  .osa-auth-mobile-brand strong { color: var(--osa-on-surface); font-size: 18px; }
  .osa-auth-mobile-brand span { display: block; color: var(--osa-on-surface-variant); font-size: 11px; }
  .osa-auth-title { font-size: 29px; }
  .osa-auth-panel__copyright { margin-top: auto; padding-top: 40px; }
}
@media (prefers-reduced-motion: no-preference) {
  .osa-auth-card { animation: osa-auth-enter .45s ease-out both; }
  @keyframes osa-auth-enter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}


/* Shared OSA logo processing ring on the sign-in screen. */
.osa-auth-brand__mark[data-osa-processing] { position: relative; overflow: visible; isolation: isolate; }
.osa-auth-brand__mark .osa-brand-mark__letter { position: relative; z-index: 1; }
.osa-auth-brand__mark .osa-brand-mark__spinner { position: absolute; inset: -5px; border: 2px solid transparent; border-top-color: #9fc2ff; border-right-color: #9fc2ff; border-radius: 50%; opacity: 0; pointer-events: none; }
.osa-auth-brand__mark.is-processing .osa-brand-mark__spinner { opacity: 1; animation: osa-logo-processing .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .osa-auth-brand__mark.is-processing .osa-brand-mark__spinner { animation-duration: 2.5s; } }


/* Compact authenticated password-management screens */
.osa-auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--osa-background);
  color: var(--osa-on-surface);
}


.osa-auth-brand__image {
  display: block;
  width: min(100%, 340px);
  height: auto;
  object-fit: contain;
}
