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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.container {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #94a3b8;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

/* TOTP Input */
.code-input {
  width: 100%;
  font-size: 2rem;
  text-align: center;
  letter-spacing: 0.5em;
  padding: 0.75rem;
  background: #1e293b;
  border: 2px solid #334155;
  border-radius: 0.5rem;
  color: #f1f5f9;
  outline: none;
  transition: border-color 0.2s;
}

.code-input:focus {
  border-color: #3b82f6;
}

.code-input::placeholder {
  letter-spacing: 0.1em;
  color: #475569;
}

/* Buttons */
.btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  margin-top: 1rem;
  transition: background 0.2s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: #3b82f6;
  color: white;
}

.btn-primary:hover {
  background: #2563eb;
}

.btn-primary:disabled {
  background: #1e3a5f;
  cursor: not-allowed;
}

/* IP Display */
.ip-display {
  font-size: 1.8rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: #f1f5f9;
  margin: 1.5rem 0;
  padding: 1rem;
  background: #1e293b;
  border-radius: 0.5rem;
  border: 1px solid #334155;
}

/* Status Messages */
.status {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  display: none;
}

.status.show {
  display: block;
}

.status.success {
  background: #064e3b;
  color: #6ee7b7;
  border: 1px solid #065f46;
}

.status.exists {
  background: #1e3a5f;
  color: #93c5fd;
  border: 1px solid #1e40af;
}

.status.error {
  background: #450a0a;
  color: #fca5a5;
  border: 1px solid #7f1d1d;
}
