* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  min-height: 100vh;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 32px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

h1 {
  margin: 0 0 8px 0;
  font-size: 1.4rem;
}

.sub {
  margin: 0 0 20px 0;
  color: #94a3b8;
  font-size: 0.92rem;
}

form { display: flex; flex-direction: column; gap: 14px; }

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: #cbd5e1;
}

input[type="text"], input[type="file"] {
  background: #0f172a;
  color: #f1f5f9;
  border: 1px solid #475569;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 1rem;
}

input[type="text"]:focus, input[type="file"]:focus {
  outline: 2px solid #38bdf8;
  border-color: #38bdf8;
}

fieldset.cert-type {
  border: 1px solid #475569;
  border-radius: 6px;
  padding: 10px 14px;
}
fieldset.cert-type legend {
  padding: 0 6px;
  color: #cbd5e1;
  font-size: 0.85rem;
}
.radio {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  display: inline-flex;
  margin-right: 18px;
}

button {
  margin-top: 6px;
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  background: #0284c7;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
button:hover:not(:disabled) { background: #0369a1; }
button:disabled { opacity: 0.6; cursor: not-allowed; }

.status {
  margin-top: 16px;
  min-height: 1.2em;
  font-size: 0.92rem;
}
.status.success { color: #4ade80; }
.status.error   { color: #f87171; }
.status.info    { color: #38bdf8; }
