/* ========================================
   Fondoke API Documentation - Custom Styles
   ======================================== */

/* Scalar theme customization */
:root {
  --scalar-color-1: #1a1a2e;
  --scalar-color-2: #16213e;
  --scalar-color-accent: #e94560;
}

body {
  margin: 0;
  padding: 0;
}

/* ========================================
   Auth Overlay
   ======================================== */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 46, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.auth-overlay.hidden {
  display: none;
}

.auth-container {
  background: #16213e;
  padding: 2.5rem 3rem;
  border-radius: 12px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  color: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.auth-container h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #e94560;
}

.auth-container .auth-subtitle {
  margin: 0 0 2rem;
  color: #a0a0a0;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-block;
  width: 100%;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  box-sizing: border-box;
}

.btn-primary {
  background: #e94560;
  color: #fff;
}

.btn-primary:hover {
  background: #d63850;
}

.btn-primary:active {
  background: #c02d45;
}

.btn-secondary {
  background: transparent;
  border: 1px solid #4a4a6a;
  color: #a0a0a0;
}

.btn-secondary:hover {
  border-color: #fff;
  color: #fff;
}

/* ========================================
   Auth Actions
   ======================================== */
.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-actions.hidden {
  display: none;
}

/* ========================================
   Manual Token Form
   ======================================== */
.manual-token-form {
  display: none;
}

.manual-token-form.visible {
  display: block;
}

.manual-token-form textarea {
  width: 100%;
  height: 120px;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px solid #2a2a4a;
  border-radius: 6px;
  background: #0f0f23;
  color: #fff;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.85rem;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.manual-token-form textarea:focus {
  outline: none;
  border-color: #e94560;
}

.manual-token-form textarea::placeholder {
  color: #555;
}

.token-actions {
  display: flex;
  gap: 0.5rem;
}

.token-actions .btn {
  flex: 1;
}

/* ========================================
   Auth Error Message
   ======================================== */
.auth-error {
  display: none;
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(233, 69, 96, 0.15);
  border: 1px solid rgba(233, 69, 96, 0.3);
  border-radius: 6px;
  color: #e94560;
  font-size: 0.85rem;
}

.auth-error.visible {
  display: block;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 480px) {
  .auth-container {
    padding: 1.5rem;
    border-radius: 8px;
  }

  .auth-container h2 {
    font-size: 1.25rem;
  }

  .token-actions {
    flex-direction: column;
  }
}
