*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #c0392b;
  --red-dark: #922b21;
  --red-dim: #fdecea;
  --orange: #e67e22;
  --text: #212121;
  --text-muted: #666;
  --border: #ddd;
  --bg: #f5f5f5;
  --white: #fff;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  background: #1c1c1c;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon { font-size: 20px; }
.logo-name { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -.3px; }
.logo-dept { font-size: 11px; color: #aaa; border-left: 1px solid #444; padding-left: 8px; margin-left: 4px; }
.header-right { display: flex; align-items: center; gap: 16px; }
.header-ref { font-size: 11px; color: #888; font-family: monospace; }

/* Language switcher */
.lang-switch { display: flex; border: 1px solid #444; border-radius: 4px; overflow: hidden; }
.lang-btn {
  background: transparent;
  border: none;
  border-left: 1px solid #444;
  color: #aaa;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.lang-btn:first-child { border-left: none; }
.lang-btn:hover { color: #fff; background: #2a2a2a; }
.lang-btn.active { background: var(--red); color: #fff; }

/* Alert banner */
.alert-banner {
  background: var(--red);
  color: #fff;
  padding: 14px 28px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.alert-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.alert-banner strong { font-size: 14px; font-weight: 700; display: block; margin-bottom: 3px; }
.alert-sub { font-size: 12px; opacity: .9; }

/* Main */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px;
}

/* Card */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  border-radius: 6px;
  padding: 32px 36px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}

/* Step indicator */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.step {
  width: 24px; height: 24px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step.active { background: var(--red); color: #fff; }
.step.inactive { background: #e0e0e0; color: #999; }
.step-label { font-size: 12px; font-weight: 600; color: var(--text); }
.step-label.muted { color: #999; }
.step-line { flex: 1; height: 2px; background: #e0e0e0; }

h2 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.subtitle { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; }

/* Form */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 5px; }
.form-group input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192,57,43,.12);
}

/* Buttons */
.btn {
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  transition: background .15s, box-shadow .15s;
}
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: var(--red-dark); box-shadow: 0 2px 8px rgba(192,57,43,.35); }
.btn-danger:active { background: #7b241c; }

/* Info box */
.info-box {
  background: #fff8e1;
  border-left: 3px solid var(--orange);
  border-radius: 3px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 18px;
}

.help-text { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 14px; }

/* Spinner */
.spinner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 13px;
}
.spinner {
  width: 36px; height: 36px;
  border: 3px solid #eee;
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }

/* Footer */
.site-footer {
  text-align: center;
  padding: 14px 20px;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--white);
}
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 520px) {
  .card { padding: 22px 18px; }
  .alert-banner { padding: 12px 16px; }
  .site-header { flex-wrap: wrap; gap: 10px; }
  .header-ref { display: none; }
}
