html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

:root {
  --ps5-brand: #7c5cff;
  --ps5-warning: #f59e0b;
  --ps5-bg: #0f1117;
  --ps5-surface: #1a1d27;
  --ps5-surface-2: #22262f;
  --ps5-text: #f4f4f5;
  --ps5-muted: #a1a1aa;
  --ps5-danger: #f87171;
  --ps5-border: #2d3341;
}

.auth-body {
  margin: 0;
  min-height: 100dvh;
  background: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(124, 92, 255, 0.25), transparent 50%),
    linear-gradient(180deg, var(--ps5-bg) 0%, #0a0b10 100%);
  color: var(--ps5-text);
}

.auth-main {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.auth-card {
  width: 100%;
  max-width: 26rem;
  background: var(--ps5-surface);
  border: 1px solid var(--ps5-border);
  border-radius: 1rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.auth-card-inner {
  padding: 1.75rem 1.5rem 2rem;
}

.auth-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.auth-icon {
  width: 3.5rem;
  height: 3.5rem;
  padding: 0.65rem;
  border-radius: 1rem;
  background: rgba(245, 158, 11, 0.15);
  color: var(--ps5-warning);
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
}

.auth-sub {
  text-align: center;
  font-size: 0.875rem;
  color: var(--ps5-muted);
  margin: 0.35rem 0 1.25rem;
}

.auth-field {
  margin-bottom: 1rem;
}

.auth-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ps5-muted);
  margin-bottom: 0.35rem;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 0.75rem;
  color: var(--ps5-muted);
  pointer-events: none;
}

.auth-input {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.75rem 0.65rem 2.35rem;
  border-radius: 0.5rem;
  border: 1px solid var(--ps5-border);
  background: var(--ps5-surface-2);
  color: var(--ps5-text);
  font-size: 1rem;
}

.auth-input:focus {
  outline: none;
  border-color: var(--ps5-brand);
  box-shadow: 0 0 0 1px var(--ps5-brand);
}

.auth-input-pad-r {
  padding-right: 2.75rem;
}

.auth-toggle-pw {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--ps5-muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.auth-toggle-pw:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ps5-text);
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--ps5-muted);
  margin-bottom: 0.75rem;
}

.auth-error {
  min-height: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--ps5-danger);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.auth-submit {
  width: 100%;
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--ps5-brand), #5b3fd9);
  cursor: pointer;
}

.auth-submit:hover {
  filter: brightness(1.05);
}

.dash-body {
  margin: 0;
  min-height: 100dvh;
  background: #f4f4f6;
}

.dash-nav {
  background: linear-gradient(90deg, #1a1d27, #12141a);
}

.dash-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.dash-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}

.dash-site-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.dash-site-label {
  font-size: 0.8rem;
  color: #71717a;
  margin: 0;
}

.dash-site-input {
  min-width: 8rem;
  max-width: 14rem;
  border-radius: 0.375rem;
  border: 1px solid #d4d4d8;
  padding: 0.35rem 0.5rem;
}

.summary-json {
  font-size: 0.72rem;
  line-height: 1.45;
  max-height: 18rem;
  overflow: auto;
  background: #18181b;
  color: #e4e4e7;
  border-radius: 0.5rem;
  padding: 0.75rem;
  border: 1px solid #27272a;
}

.summary-card {
  border-radius: 0.75rem !important;
}
