/* VAI Cloud theme for Dex — matches the platform UI
 * (bg #0f1117, cards #1a1d27, borders #2d3148, accent #6366f1). */

html {
  height: 100%;
}

body.theme-body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(60rem 32rem at 85% -10%, rgba(99, 102, 241, 0.14), transparent 60%),
    radial-gradient(48rem 28rem at -10% 110%, rgba(99, 102, 241, 0.08), transparent 60%),
    #0f1117;
  color: #e5e7eb;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* Top bar */
.theme-navbar {
  height: 62px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  background: rgba(26, 29, 39, 0.85);
  border-bottom: 1px solid #2d3148;
  box-shadow: none;
}

.theme-navbar__logo-wrap {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0;
}

.theme-navbar__logo {
  height: 30px;
  max-height: 30px;
}

/* Card */
.dex-container {
  display: flex;
  justify-content: center;
  padding: 9vh 16px 0;
}

.theme-panel {
  width: 100%;
  max-width: 380px;
  padding: 36px 34px 30px;
  background: #1a1d27;
  border: 1px solid #2d3148;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.theme-heading {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.2px;
}

/* Landing-page subtitle under the heading */
.theme-panel > .theme-heading::after {
  content: "Perception AI Platform — data, training, streaming and evaluation for vision models. Sign in to continue.";
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.55;
  color: #9ca3af;
}

.theme-panel h2 + div,
.theme-panel form {
  margin-top: 22px;
}

/* Provider buttons (chooser page) */
.theme-form-row {
  margin: 10px 0;
}

.theme-form-row a {
  text-decoration: none;
}

.dex-btn.theme-btn-provider {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #222638;
  border: 1px solid #2d3148;
  border-radius: 10px;
  color: #e5e7eb;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dex-btn.theme-btn-provider:hover {
  background: #1e2035;
  border-color: rgba(99, 102, 241, 0.55);
}

.dex-btn-icon {
  filter: grayscale(1) brightness(1.6);
}

.dex-btn-text {
  color: inherit;
}

/* Form inputs (password page) */
.theme-form-label {
  display: block;
  margin: 14px 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #9ca3af;
}

.theme-form-input {
  width: 100%;
  height: 42px;
  box-sizing: border-box;
  padding: 0 12px;
  background: #0f1117;
  border: 1px solid #2d3148;
  border-radius: 10px;
  color: #e5e7eb;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease;
}

.theme-form-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.theme-form-input::placeholder {
  color: #6b7280;
}

/* Primary submit button */
.dex-btn.theme-btn--primary {
  width: 100%;
  height: 44px;
  margin-top: 18px;
  background: #6366f1;
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.dex-btn.theme-btn--primary:hover {
  background: #575af0;
}

/* Errors + misc text */
.dex-error-box {
  margin: 14px 0 0;
  padding: 10px 12px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.4);
  border-radius: 10px;
  color: #fda4af;
  font-size: 13px;
}

.dex-subtle-text,
.theme-link-back {
  color: #9ca3af;
  font-size: 13px;
}

a,
a:visited {
  color: #818cf8;
}

a:hover {
  color: #a5b4fc;
}
