/* ============================================
   CERTIFICATE VERIFICATION — Page styles
   ============================================ */
:root {
  --primary:       #2563eb;
  --primary-hover: #1d4ed8;
  --bg-color:      #f8fafc;
  --text-dark:     #0f172a;
  --text-light:    #64748b;
  --card-shadow:   0 25px 50px -12px rgba(0,0,0,0.1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  background-image:
    radial-gradient(at 0% 0%,   hsla(253,16%,7%,0.05)  0, transparent 50%),
    radial-gradient(at 50% 100%, hsla(225,39%,30%,0.05) 0, transparent 50%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text-dark);
}

/* Header */
header {
  width: 100%;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  position: fixed;
  top: 0;
  z-index: 10;
}

.logo {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 2px;
}

/* Main */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 40px;
}

.verification-card {
  background: #fff;
  width: 100%;
  max-width: 480px;
  padding: 48px 40px;
  border-radius: 24px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255,255,255,0.5);
  text-align: center;
  transition: transform 0.3s ease;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  background: #eff6ff;
  color: var(--primary);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

h1 { font-size: 28px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.5px; }
p.subtitle { color: var(--text-light); font-size: 15px; margin-bottom: 32px; line-height: 1.5; }

/* Form */
.input-group { position: relative; margin-bottom: 16px; text-align: left; }

label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; color: var(--text-dark); }

input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  background: #fff;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
}

input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
}

button {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

button:hover   { background: var(--primary-hover); transform: translateY(-1px); }
button:disabled { background: #94a3b8; cursor: not-allowed; transform: none; }

/* Results */
#result { margin-top: 24px; text-align: left; }

.result-box {
  padding: 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.result-success { background: #ecfdf5; color: #065f46; border: 1px solid #d1fae5; }
.result-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fee2e2; }

/* Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  display: none;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
footer {
  text-align: center;
  padding: 24px;
  color: var(--text-light);
  font-size: 12px;
  border-top: 1px solid rgba(0,0,0,0.05);
}
