/* Cabinet sign-in, first administrator and required password change. */
.auth-screen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  width: 100vw !important;
  height: 100vh !important;
  overflow-y: auto !important;
  background: #ffffff !important;
  color: #132b42;
  font-family: "DM Sans", sans-serif;
}

#setup-screen.auth-screen,
#login-screen.auth-screen,
#force-password-screen.auth-screen { background: #ffffff !important; }

.auth-screen .auth-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.auth-screen .auth-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border: 1px solid #d9dad8;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(24, 28, 31, .07);
  overflow: hidden;
}

#setup-screen .auth-card { max-width: 520px; }

.auth-screen .auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 32px;
  border-bottom: 1px solid #e4e4e1;
  color: #132b42;
  font-size: 20px;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.auth-screen .auth-brand img {
  width: 69px;
  height: 80px;
  flex: 0 0 69px;
  object-fit: contain;
}
.auth-screen .auth-brand .ph-cabinet-logo { width:69px; height:80px; }

.auth-screen .auth-brand strong { font-weight: 750; }

.auth-screen .auth-content { padding: 32px; }
.auth-screen .auth-content h5 {
  color: #132b42 !important;
  font-size: 23px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -.025em;
}
.auth-screen .auth-content > p { color: #62666a !important; line-height: 1.5; }

.auth-screen .form-label {
  display: block;
  margin-bottom: 6px;
  color: #303438 !important;
  font-size: 14px;
  font-weight: 600;
}

.auth-screen .form-control {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #aeb1b3;
  border-radius: 6px;
  background: #fff;
  color: #24282b;
  font-size: 15px;
}

.auth-screen .form-control::placeholder { color: #777b7e; }
.auth-screen .form-control:focus {
  border-color: #132b42;
  box-shadow: 0 0 0 3px rgba(19,43,66,.15);
}

.auth-screen .input-group .form-control { border-radius: 6px 0 0 6px; }
.auth-screen .input-group .btn {
  border-color: #aeb1b3;
  border-radius: 0 6px 6px 0;
  background: #fff;
}

.auth-screen .form-check-input {
  border-color: #777b7e;
  cursor: pointer;
}
.auth-screen .form-check-input:checked {
  background-color: #24425d;
  border-color: #24425d;
}
.auth-screen .form-check-input:focus { box-shadow: 0 0 0 3px rgba(19,43,66,.15); }
.auth-screen .form-check-label { color: #42474a !important; cursor: pointer; }

.auth-screen .btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #132b42;
  --bs-btn-border-color: #132b42;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #0a1c2e;
  --bs-btn-hover-border-color: #0a1c2e;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #0a1c2e;
  --bs-btn-active-border-color: #0a1c2e;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #132b42;
  --bs-btn-disabled-border-color: #132b42;
  min-height: 44px;
  border-radius: 6px;
  color: #fff !important;
  font-size: 15px;
  font-weight: 650;
  box-shadow: none;
}
.auth-screen .btn-primary i { color: #fff !important; }

.auth-screen .btn-outline-dark {
  min-height: 44px;
  border-color: #85898b;
  border-radius: 6px;
  color: #132b42;
  font-size: 15px;
  font-weight: 600;
}
.auth-screen .btn-outline-dark:hover { background: #132b42; color: #fff; }
.auth-screen .btn-link { color: #0a1c2e; text-decoration: underline; text-underline-offset: 2px; }
.auth-screen .btn-link:hover { color: #0a1c2e; }
.auth-screen .btn:focus-visible,
.auth-screen a:focus-visible {
  outline: 2px solid #132b42;
  outline-offset: 2px;
  box-shadow: none;
}

.auth-screen .alert-danger {
  border-radius: 6px;
  border-color: #a23535;
  background: #fff;
  color: #a23535;
}

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

@media (max-width: 575px) {
  .auth-screen .auth-layout { align-items: flex-start; padding: 12px; }
  .auth-screen .auth-brand { padding: 20px; }
  .auth-screen .auth-content { padding: 24px 20px; }
  .auth-screen .auth-content h5 { font-size: 21px; }
}
