/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  line-height: 1.6;
  color: #333;
}

/* Container */
.container {
  width: 100%;
  max-width: 800px;
}

/* Card */
.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 3rem;
  animation: slideUp 0.4s ease-out;
}

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

.card.error {
  border-left: 4px solid #dc3545;
}

.card.success {
  border-left: 4px solid #28a745;
}

/* Typography */
h1 {
  color: #2d3748;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

h2 {
  color: #4a5568;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

h3 {
  color: #4a5568;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.subtitle {
  color: #718096;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Info Box */
.info-box {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.info-box.success {
  background: #f0fdf4;
  border-color: #86efac;
}

.info-box.error {
  background: #fef2f2;
  border-color: #fca5a5;
}

.info-box h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
}

table td {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e2e8f0;
}

table td:first-child {
  width: 35%;
  color: #4a5568;
}

table td:last-child {
  color: #2d3748;
  word-break: break-all;
}

table tr:last-child td {
  border-bottom: none;
}

/* Lists */
ul {
  list-style: none;
  padding-left: 0;
}

ul li {
  padding: 0.5rem 0;
  color: #4a5568;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
  background: #718096;
  color: white;
}

.btn-secondary:hover {
  background: #4a5568;
  transform: translateY(-2px);
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-danger:hover {
  background: #c82333;
  transform: translateY(-2px);
}

/* Code */
code {
  background: #edf2f7;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: #e53e3e;
}

pre {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  .card {
    padding: 1.5rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  table td:first-child {
    width: 40%;
    font-size: 0.9rem;
  }

  table td:last-child {
    font-size: 0.9rem;
  }

  .btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-right: 0;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(102, 126, 234, 0.3);
  border-radius: 50%;
  border-top-color: #667eea;
  animation: spin 1s ease-in-out infinite;
}

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

/* Status Badge */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
}

.badge-error {
  background: #fee2e2;
  color: #991b1b;
}

/* Biometric */
.btn-biometric {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-biometric:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.biometric-section {
  margin-top: 1.5rem;
}

.biometric-divider {
  text-align: center;
  color: #a0aec0;
  font-size: 0.9rem;
  margin: 1rem 0;
  position: relative;
}

.biometric-divider span {
  background: white;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

.biometric-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid #e2e8f0;
}

.biometric-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #718096;
  min-height: 1.4em;
}

.biometric-status.success {
  color: #059669;
  font-weight: 600;
}

.biometric-status.error {
  color: #dc2626;
  font-weight: 600;
}
