/* Sign-in card. Matches the Service Portal login screen. */

body.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  color-scheme: light;
  background:
    radial-gradient(circle at 20% 20%, #f5f3ff 0%, #ede9fe 30%, #f9fafb 70%);
}

body.auth-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(108, 43, 217, 0.08), transparent 60%);
  pointer-events: none;
}

body.auth-body #app {
  width: 100%;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  margin: 6vh auto;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.06);
  color: #111827;
}

.auth-card .brand-bar {
  height: 6px;
  background: linear-gradient(180deg, #8758ff 0%, #7c4dff 35%, #6c2bd9 100%);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.auth-card .auth-content {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.auth-card .app-header {
  text-align: center;
}

.auth-card .app-header img {
  max-height: 64px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.auth-card .app-header h4 {
  margin: 2px 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
}

.auth-card #screen-login {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.auth-card .auth-heading {
  text-align: center;
}

.auth-card .auth-heading h5 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
}

.auth-card form {
  display: flex;
  flex-direction: column;
}

.auth-card .primary-btn {
  height: 44px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #8758ff 0%, #7c4dff 35%, #6c2bd9 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow:
    0 4px 10px rgba(108, 43, 217, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.15s cubic-bezier(.2, .8, .2, 1), box-shadow 0.2s ease, background 0.2s ease;
}

.auth-card .primary-btn.full-width {
  width: 100%;
}

.auth-card .primary-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #8758ff 0%, #7a36e6 100%);
  box-shadow:
    0 8px 20px rgba(108, 43, 217, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.auth-card .primary-btn:active:not(:disabled) {
  transform: translateY(0);
}

.auth-card .primary-btn:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.auth-card .alert {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 14px;
}

.auth-card .alert.error {
  background: #fdecec;
  color: #dc2626;
}

.auth-card .d-none {
  display: none !important;
}

.auth-card .auth-spinner {
  width: 14px;
  height: 14px;
  border-width: 2px;
  vertical-align: middle;
}

.auth-card .auth-spinner::before {
  inset: 2px;
  border-width: 2px;
}

@media (max-width: 480px) {
  .auth-card { margin: 4vh 12px; }
}
