/* RMS Ops login — StaySync layout adapted to light ops theme */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
  background: #f4f6f8;
  color: #111827;
  font-family: Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

.login-page,
.login-page *,
.login-page *::before,
.login-page *::after {
  box-sizing: border-box;
}

.login-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37, 99, 235, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(14, 165, 233, 0.08), transparent 50%),
    #f4f6f8;
  z-index: 0;
}

.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 28rem;
  padding: 2rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.login-brand {
  text-align: center;
  margin-bottom: 1.75rem;
}

.login-brand h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
  line-height: 1.2;
}

.login-brand h1 em {
  font-style: normal;
  color: #2563eb;
}

.login-brand p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.4;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  width: 100%;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
}

.login-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #4b5563;
}

.login-input,
.login-submit {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.875rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
}

.login-input {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #111827;
}

.login-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: #fff;
}

.login-submit {
  margin-top: 0.25rem;
  border: none;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.login-submit:hover { background: #1d4ed8; }

.login-error {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

.login-hint {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: 0.82rem;
  line-height: 1.45;
}

.login-foot {
  margin: 1.5rem 0 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.35;
}

.login-brand-mark {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #4b5563;
  text-transform: uppercase;
}

.login-brand-i {
  color: #e10600;
}

.login-copy {
  font-size: 0.7rem;
  color: #9ca3af;
}

.login-otp-section { display: flex; flex-direction: column; gap: 0.75rem; }
.login-otp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.login-otp-label { font-size: 0.875rem; font-weight: 700; color: #4b5563; }
.login-otp-badge {
  font-size: 11px;
  font-weight: 800;
  color: #1d4ed8;
  background: #dbeafe;
  border-radius: 999px;
  padding: 3px 8px;
}
.login-otp-user { margin: 0; font-size: 0.85rem; color: #6b7280; }
.login-input-otp {
  letter-spacing: 0.35em;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
}
.login-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 0.25rem 0 0.5rem;
}
.login-qr-wrap img {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
}
.login-secret {
  display: block;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: #0f172a;
  color: #7dd3fc;
  font-size: 0.78rem;
  word-break: break-all;
  line-height: 1.45;
}
.login-secondary {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #6b7280;
  text-decoration: none;
}
.login-secondary:hover { color: #2563eb; }

.rms-top-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  font-size: 12px;
  color: var(--rms-muted);
}

.rms-top-user strong {
  color: var(--rms-ink);
  font-weight: 700;
}
