/*
  ICA authentication screen
  This stylesheet deliberately replaces the old blurred-overlay presentation.
*/

.auth-loading .app-shell {
  visibility: hidden;
}

.auth-locked {
  overflow: hidden;
}

.auth-locked .app-shell {
  visibility: hidden;
  filter: none;
  pointer-events: none;
  user-select: none;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 32px 20px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 138, 31, 0.13), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(59, 130, 246, 0.08), transparent 26%),
    linear-gradient(180deg, #08111f 0%, #050a12 100%);
  backdrop-filter: none;
}

.auth-gate[hidden] {
  display: none !important;
}

.auth-card {
  width: min(460px, 100%);
  margin: auto;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;
  background: linear-gradient(145deg, #111e30, #0a1422);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.44);
}

.auth-brand {
  margin-bottom: 28px;
}

.auth-card .eyebrow {
  margin-bottom: 10px;
}

.auth-card h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 6vw, 42px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.auth-card > p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.auth-form {
  display: grid;
  gap: 15px;
}

.auth-form[hidden] {
  display: none !important;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: #dbe7f5;
  font-size: 12px;
  font-weight: 750;
}

.auth-form input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  outline: none;
  background: #07111f;
  color: #fff;
  font: inherit;
}

.auth-form input:focus {
  border-color: rgba(255, 142, 45, 0.82);
  box-shadow: 0 0 0 3px rgba(255, 142, 45, 0.12);
}

.auth-form .primary-btn,
.auth-form .secondary-btn {
  min-height: 50px;
}

.auth-link-btn {
  width: max-content;
  margin: -2px auto 0;
  padding: 5px 2px;
  border: 0;
  background: transparent;
  color: var(--orange2);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.auth-link-btn:hover {
  text-decoration: underline;
}

.auth-message {
  display: none;
  padding: 11px 12px;
  border-radius: 11px;
  font-size: 12px;
  line-height: 1.5;
}

.auth-message.visible {
  display: block;
}

.auth-message.error {
  border: 1px solid rgba(239, 68, 68, 0.24);
  background: rgba(239, 68, 68, 0.08);
  color: #fecaca;
}

.auth-message.success {
  border: 1px solid rgba(66, 211, 146, 0.22);
  background: rgba(66, 211, 146, 0.08);
  color: #b8f8da;
}

@media (max-width: 520px) {
  .auth-gate {
    align-items: start;
    padding: 18px 12px;
  }

  .auth-card {
    padding: 25px 20px;
    border-radius: 20px;
  }
}


.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 72px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 9px;
  transform: translateY(-50%);
  min-width: 52px;
  height: 34px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--orange2);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

.password-toggle:hover {
  border-color: rgba(255, 142, 45, 0.38);
  background: rgba(255, 142, 45, 0.08);
}

.password-toggle:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
