.login-page {
  display: grid;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  overflow: auto;
  padding: 28px;
  background: var(--surface-deep);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-card {
  width: min(100%, 420px);
  padding: 30px;
  border: 1px solid #52606d;
  border-radius: 24px;
  background: rgba(52, 65, 78, .94);
  box-shadow: 0 24px 70px rgba(2, 7, 12, .34);
  backdrop-filter: blur(16px);
}

.login-brand { display: flex; justify-content: center; }
.login-brand-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 38px 11px 0;
}
.login-brand-mark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  background: #668fbe;
  color: #fff;
}
.login-brand-mark [data-icon] { width: 19px; height: 19px; }
.login-brand-name {
  color: #f4f7fa;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.035em;
}
.login-brand-line small {
  position: absolute;
  right: 0;
  bottom: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

.login-clock {
  display: grid;
  gap: 2px;
  margin: 20px 0 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(126, 142, 156, .45);
  text-align: center;
}
.login-clock time {
  min-width: 8ch;
  color: #f6f8fa;
  font-variant-numeric: tabular-nums;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.15;
}
.login-clock span { color: var(--muted); font-size: 12px; }

.auth-form { display: grid; gap: 8px; margin: 0; }
.auth-form > label:not(.remember-device) {
  margin-top: 7px;
  color: #dce3e9;
  font-size: 12px;
  font-weight: 650;
}
.auth-input { position: relative; }
.auth-input > [data-icon] {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 13px;
  width: 17px;
  height: 17px;
  color: #aeb8c2;
  transform: translateY(-50%);
  pointer-events: none;
}
.auth-input input {
  width: 100%;
  height: 44px;
  padding: 0 42px;
  border: 1px solid #62717f;
  border-radius: 9px;
  outline: 0;
  background: rgba(44, 56, 67, .88);
  color: var(--ink);
}
.auth-input input::placeholder { color: #9ca8b3; }
.auth-input input:focus {
  border-color: #86a9d0;
  box-shadow: 0 0 0 3px rgba(111, 150, 196, .2);
}
.auth-password input { padding-right: 46px; }
.auth-password button {
  position: absolute;
  top: 3px;
  right: 3px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #aeb8c2;
}
.auth-password button:hover { color: #e9eef2; background: rgba(255, 255, 255, .05); }
.auth-password button:focus-visible { outline: 2px solid #86a9d0; outline-offset: 0; }

.remember-device {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin-top: 7px;
  color: #d3dae0;
  font-size: 12px;
  font-weight: 500;
}
.remember-device input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.last-login { margin: 0 0 6px; color: var(--muted); font-size: 11px; }

.form-message {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 0;
  margin: 3px 0 6px !important;
  padding: 10px 11px;
  border: 1px solid rgba(239, 125, 135, .42);
  border-radius: 8px;
  background: rgba(112, 42, 50, .28);
  color: #ffc4ca !important;
  font-size: 12px;
}
.form-message[hidden] { display: none; }
.form-message [data-icon] { width: 17px; height: 17px; flex-basis: 17px; }
.auth-submit { width: 100%; min-height: 41px; margin-top: 4px; border-radius: 8px; }
.auth-form[aria-busy="true"] { opacity: .82; }
.auth-form :disabled { cursor: not-allowed; opacity: .62; }

@media (max-width: 520px) {
  .login-page { padding: 14px; }
  .login-card { padding: 25px 22px; }
}
