:root {
  --primary-bg: #0f0f1a;
  --secondary-bg: #1a1a2e;
  --accent: #D4AF37;
  --accent-light: #F4D03F;
  --text-primary: #e0e0e0;
  --text-secondary: #b0b0b0;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.rsd-reglog-wrap {
  /* min-height: 100dvh; */
  display: grid;
  place-items: center;
  /* background: radial-gradient(800px 400px at 50% -10%, rgba(212,175,55,.12), transparent 70%), var(--primary-bg); */
  /* padding: 32px 16px; */
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
}

.rsd-reglog-card {
  width: min(420px, 100%);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 14px;
  padding: 28px;
  position: relative;
  transition: opacity .4s ease, transform .4s ease;
}

.rsd-reglog-card.hidden {
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  position: absolute;
}

.rsd-reglog-head {
  text-align: center;
  margin-bottom: 20px;
}
.rsd-reglog-title {
  font-size: 22px;
  font-weight: 600;
}
.rsd-reglog-sub {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 6px;
}

.rsd-reglog-field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
.rsd-reglog-label {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .3px;
  color: var(--text-secondary);
}

.rsd-reglog-input {
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  color: var(--text-primary);
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  transition: all .2s ease;
}
.rsd-reglog-input:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212,175,55,.25);
}

/* Responsive code grid */
.rsd-reglog-code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
  gap: 8px;
}
.rsd-reglog-code {
  text-align: center;
  font-size: 18px;
  padding: 12px 0;
  text-transform: uppercase;
}

.rsd-reglog-button {
  appearance: none;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--accent), var(--accent-light));
  color: #000;
  font-weight: 600;
  width: 100%;
  padding: 12px 0;
  cursor: pointer;
  transition: transform .15s ease, opacity .2s ease;
}
.rsd-reglog-button:hover {
  opacity: .9;
  transform: translateY(-1px);
}
.rsd-reglog-button[disabled] {
  opacity: .6;
  cursor: not-allowed;
}
.rsd-reglog-mini {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 12px;
}
.rsd-reglog-mini a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.rsd-reglog-logout{
    font-size: 12px;
    padding: 12px 30px;
}
/* Inline code validity visuals */
.rsd-reglog-code.valid {
  border-color: #00C853;
  box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.25);
}
.rsd-reglog-code.invalid {
  border-color: #FF5252;
  box-shadow: 0 0 0 3px rgba(255, 82, 82, 0.25);
}

/* General input validity visuals (passwords, etc.) */
.rsd-reglog-input.valid {
  border-color: #00C853;
  box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.25);
}
.rsd-reglog-input.invalid {
  border-color: #FF5252;
  box-shadow: 0 0 0 3px rgba(255, 82, 82, 0.25);
}