.agent-online.syncing {
  color: #3157f6;
  background: #edf1ff;
}

.agent-online.syncing i {
  background: #3157f6;
  animation: sync-pulse 0.9s ease-in-out infinite alternate;
}

.agent-online.offline {
  color: #a33c42;
  background: #fff0f1;
}

.agent-online.offline i {
  background: #c4474f;
}

@keyframes sync-pulse {
  from { opacity: 0.35; transform: scale(0.72); }
  to { opacity: 1; transform: scale(1.14); }
}

.evidence-note {
  margin-top: 10px;
}

.evidence-note input {
  width: 100%;
  height: 42px;
  border: 1px solid #d8dfdc;
  border-radius: 10px;
  padding: 0 13px;
  color: #17211d;
  background: #fff;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.evidence-note input:focus {
  border-color: #3157f6;
  box-shadow: 0 0 0 3px rgba(49, 87, 246, 0.11);
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 28px;
  color: #e9f1ef;
  background:
    radial-gradient(circle at 22% 18%, rgba(75, 118, 255, 0.24), transparent 34%),
    radial-gradient(circle at 78% 82%, rgba(60, 210, 177, 0.17), transparent 31%),
    #09110f;
}

.auth-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.auth-atmosphere,
.auth-atmosphere i {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.auth-atmosphere i {
  width: 340px;
  height: 340px;
  margin: auto;
  border: 1px solid rgba(116, 238, 211, 0.12);
  border-radius: 50%;
  animation: auth-orbit 18s linear infinite;
}

.auth-atmosphere i:nth-child(2) {
  width: 520px;
  height: 520px;
  animation-duration: 28s;
  animation-direction: reverse;
}

.auth-atmosphere i:nth-child(3) {
  width: 700px;
  height: 700px;
  animation-duration: 42s;
}

.auth-atmosphere i::after {
  content: "";
  position: absolute;
  top: 12%;
  left: 11%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #72e2cc;
  box-shadow: 0 0 20px rgba(114, 226, 204, 0.9);
}

@keyframes auth-orbit {
  to { transform: rotate(360deg); }
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 44px;
  border: 1px solid rgba(184, 220, 211, 0.18);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(25, 39, 35, 0.96), rgba(12, 22, 19, 0.96));
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(22px);
  animation: auth-arrive 0.55s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

@keyframes auth-arrive {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-mark {
  display: flex;
  gap: 6px;
  width: 46px;
  height: 42px;
  margin-bottom: 28px;
  align-items: flex-end;
}

.auth-mark span {
  display: block;
  width: 10px;
  border-radius: 3px;
  background: #6ce0c7;
  box-shadow: 0 0 18px rgba(108, 224, 199, 0.26);
}

.auth-mark span:nth-child(1) { height: 22px; }
.auth-mark span:nth-child(2) { height: 38px; }
.auth-mark span:nth-child(3) { height: 30px; }

.auth-card > p {
  margin: 0 0 8px;
  color: #72e2cc;
  font: 700 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.18em;
}

.auth-card h1 {
  margin: 0;
  color: #f4f8f7;
  font-size: 27px;
  line-height: 1.28;
  letter-spacing: -0.035em;
}

.auth-card > small {
  display: block;
  margin: 13px 0 30px;
  color: #8fa39d;
  font-size: 13px;
  line-height: 1.75;
}

.auth-card label {
  display: block;
  margin-top: 17px;
}

.auth-card label span {
  display: block;
  margin-bottom: 8px;
  color: #bdcac6;
  font-size: 12px;
  font-weight: 600;
}

.auth-card input {
  width: 100%;
  height: 48px;
  box-sizing: border-box;
  border: 1px solid rgba(181, 213, 205, 0.17);
  border-radius: 12px;
  padding: 0 15px;
  color: #f4f8f7;
  background: rgba(3, 9, 7, 0.46);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-card input:focus {
  border-color: #68d8c0;
  background: rgba(3, 9, 7, 0.72);
  box-shadow: 0 0 0 4px rgba(104, 216, 192, 0.1);
}

.auth-error {
  min-height: 20px;
  margin-top: 10px;
  color: #ff8d93;
  font-size: 12px;
}

.password-rule {
  margin-top: 10px;
  color: #7f948e;
  font-size: 10px;
  line-height: 1.55;
}

.auth-card > button {
  width: 100%;
  height: 50px;
  margin-top: 4px;
  border: 0;
  border-radius: 12px;
  color: #07110e;
  background: #6ce0c7;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(83, 202, 176, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.auth-card > button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(83, 202, 176, 0.28);
}

.auth-card > button:disabled { opacity: 0.62; cursor: wait; }

.auth-card > button b { margin-left: 9px; }

.auth-card footer {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  color: #71837e;
  font-size: 11px;
}

.auth-card footer i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #55c9b0;
}

@media (max-width: 560px) {
  .auth-gate { padding: 16px; }
  .auth-card { padding: 32px 24px; border-radius: 20px; }
  .auth-card h1 { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-atmosphere i,
  .auth-card,
  .agent-online.syncing i { animation: none; }
}
