* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #e9edf3;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.card {
  width: 100%;
  max-width: 660px;
  background: #fafbfd;
  border-radius: 14px;
  border-top: 6px solid #14497e;
  box-shadow: 0 12px 32px rgba(23, 43, 77, .14);
  padding: 28px 46px 24px;
}

/* Header */
.header { display: flex; align-items: center; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid #e3e8ef; margin-bottom: 22px; }
.logo { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: #14497e; flex-shrink: 0; }
.header-text h1 { font-size: 24px; color: #172b4d; font-weight: 700; margin-bottom: 8px; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: #e9edf3; color: #5f7086; font-size: 14px; padding: 6px 14px; border-radius: 999px; }

/* Document row */
.docrow { display: flex; align-items: center; justify-content: space-between; background: #f2f4f8; border-radius: 10px; padding: 14px 18px; margin-bottom: 20px; }
.doc-left { display: flex; align-items: center; gap: 12px; }
.doc-title { font-weight: 700; color: #172b4d; font-size: 16px; }
.doc-right { display: flex; align-items: center; gap: 10px; }
.doc-id { color: #a5afbc; font-size: 14px; font-weight: 600; }

/* Notice */
.notice { display: flex; align-items: center; gap: 14px; background: #e9f1fb; border-left: 4px solid #14497e; border-radius: 10px; padding: 18px 20px; margin-bottom: 26px; }
.notice p { color: #1f334d; font-size: 16px; line-height: 1.55; }

/* Steps */
.steps { list-style: none; margin: 0 4px 26px; }
.steps li { display: flex; align-items: center; gap: 14px; color: #22364d; font-size: 16px; margin-bottom: 16px; }
.num { width: 26px; height: 26px; border-radius: 50%; background: #dfe6ee; color: #33475b; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Authenticate button */
.authbtn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: #14497e; color: #fff; font-size: 18px; font-weight: 700; padding: 16px; border-radius: 999px; text-decoration: none; transition: background .25s ease, transform .25s ease; }
.authbtn:hover { background: #0f3a66; transform: translateY(-1px); }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(20, 73, 126, .45); } 100% { box-shadow: 0 0 0 18px rgba(20, 73, 126, 0); } }
.authbtn.pulse { animation: pulse .9s ease-out; }

/* Footer divider */
.footer-line { margin-top: 22px; border-top: 1px solid #dfe4ec; }

/* Entrance animation */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Enterprise loading scene ===== */
.loader-overlay {
  position: fixed; inset: 0;
  background: linear-gradient(160deg, #0b1930 0%, #102a4c 55%, #14497e 100%);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
  z-index: 999;
}
.loader-overlay.active { opacity: 1; visibility: visible; pointer-events: all; }

.loader-box { text-align: center; width: min(90%, 420px); }

.loader-logo-wrap { position: relative; width: 92px; height: 92px; margin: 0 auto 22px; }
.loader-logo {
  width: 72px; height: 72px; border-radius: 16px; object-fit: cover;
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .45);
}
.loader-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .15);
  border-top-color: #6fb1ff;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loader-title { color: #fff; font-size: 20px; font-weight: 700; letter-spacing: .5px; margin-bottom: 10px; }
.loader-status { color: #9fc2e8; font-size: 14px; min-height: 20px; margin-bottom: 18px; }

.loader-bar { height: 4px; background: rgba(255, 255, 255, .15); border-radius: 999px; overflow: hidden; }
.loader-bar-fill { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #4d94ff, #9cc7ff); }
.loader-overlay.active .loader-bar-fill { animation: fillbar 3s cubic-bezier(.3, .6, .4, 1) forwards; }
@keyframes fillbar { 0% { width: 0; } 60% { width: 72%; } 100% { width: 100%; } }

.loader-note { margin-top: 16px; color: #6d87a8; font-size: 12px; }

/* Responsive */
@media (max-width: 560px) {
  .card { padding: 22px 22px 18px; }
  .docrow { flex-direction: column; align-items: flex-start; gap: 10px; }
  .header-text h1 { font-size: 20px; }
}