:root {
  --font-sans: 'Adobe Clean', 'Source Sans Pro', 'Segoe UI', 'Arial', sans-serif;
  --font-mono: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;

  /* Colors - tuned to resemble Adobe Premiere panel */
  --app-bg-0: #0f0f12;
  --app-bg-1: #121214;
  --surface-1: #1a1a1a;
  --surface-2: #232323;
  --surface-3: #2b2b2b;
  --border: #3a3a3a;

  --text-1: #f2f2f2;
  --text-2: #b0b0b0;
  --text-3: #8a8a8a;

  --accent-1: #7c5cfa;
  --accent-2: #6b4de6;
  --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

  --success: #22c55e;
  --danger: #ef4444;
  --info: #60a5fa;

  /* Radii, spacing, shadows */
  --radius-1: 6px;
  --radius-2: 10px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --shadow-1: 0 6px 18px rgba(0, 0, 0, 0.45);
  --shadow-2: 0 18px 48px rgba(0, 0, 0, 0.6);
  --ring-accent: 0 0 0 3px rgba(124, 92, 250, 0.25);
}

/* Base */
* {
  box-sizing: border-box;
}

body.ds-app {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-1);
  /* background: radial-gradient(
    1000px 600px at 20% 0%,
    #181820 0%,
    var(--app-bg-0) 45%,
    var(--app-bg-1) 100%
  ); */
  background: #000000;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ds-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-1);
}

.ds-input {
  width: 100%;
  padding: 14px;
  background: var(--surface-2);
  color: var(--text-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-1);
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.ds-input::placeholder {
  color: var(--text-3);
}

.ds-input:focus {
  border-color: var(--accent-1);
  box-shadow: var(--ring-accent);
}

.ds-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text-1);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-1);
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.ds-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-1);
}

.ds-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ds-button--primary {
  color: #ffffff;
  border-color: transparent;
  background: var(--accent-gradient);
}

.ds-button--ghost {
  background: transparent;
}

.ds-label {
  display: block;
  color: var(--text-2);
  font-size: 14px;
  margin-bottom: 10px;
  font-weight: 500;
}

.ds-section-title {
  color: var(--text-2);
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ds-help {
  color: var(--text-3);
  font-size: 13px;
}

/* Alerts */
.ds-alert {
  margin-top: 20px;
  padding: 12px;
  border-radius: var(--radius-1);
  text-align: center;
  font-size: 14px;
  border: 1px solid var(--border);
}

.ds-alert.success {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.55);
  color: #a7f3d0;
}

.ds-alert.error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.55);
  color: #fecaca;
}

.ds-alert.info {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.55);
  color: #bfdbfe;
}

/* Spinner */
.ds-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: ds-spin 1s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes ds-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Auth page layout */
.auth-card {
  max-width: 440px;
  width: 100%;
  padding: 40px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 30px;
}

.auth-logo h1 {
  color: var(--text-1);
  font-size: 26px;
  font-weight: 700;
}

.auth-logo p {
  color: var(--text-3);
  margin-top: 8px;
}

.auth-divider {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* Success overlay */
.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(124, 92, 250, 0.15) 0%, transparent 35%),
    radial-gradient(900px 600px at 100% 0%, rgba(102, 126, 234, 0.15) 0%, transparent 40%),
    var(--app-bg-1);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-in;
}

.success-overlay.show {
  display: flex;
}

.success-content {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-2);
  max-width: 540px;
  width: 90%;
  padding: 50px;
  text-align: center;
  animation: slideUp 0.4s ease-out;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-title {
  color: var(--text-1);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
}

.success-subtitle {
  color: var(--text-2);
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.5;
}

.success-user {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 20px;
  margin-bottom: 30px;
}
.success-user-label {
  color: var(--text-3);
  font-size: 13px;
  margin-bottom: 4px;
}
.success-user-email {
  color: var(--text-1);
  font-size: 16px;
  font-weight: 600;
}

.success-instructions {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}
.success-instructions-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-2);
  margin-bottom: 8px;
}
.success-instructions-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-1);
}
.success-footer {
  color: var(--text-3);
  font-size: 13px;
  margin-top: 20px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes checkmark {
  0% {
    stroke-dashoffset: 50;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.checkmark-path {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: checkmark 0.5s ease-out 0.5s forwards;
}
