/* .dev access gate — full-viewport branded login screen */

:root {
  --gate-cream: #ece2c9;
  --gate-soot: #0c0a08;
  --gate-text-dim: #a89c86;
  --gate-text-faint: #6d655a;
  --gate-hair: #2a2520;
  --gate-hair-2: #3a3530;
  --gate-ember: #d47a2e;
}

.dev-gate {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12,10,8,0.6) 0%, rgba(12,10,8,0.85) 100%),
    url('/assets/brand/click1.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  overflow: hidden;
  font-family: 'Inter', system-ui, sans-serif;
}

.dev-gate-grain {
  position: absolute;
  inset: 0;
  background-image:
    repeating-radial-gradient(circle at 0 0, rgba(236,226,201,0.02) 0, rgba(12,10,8,0) 2px),
    repeating-radial-gradient(circle at 100% 100%, rgba(236,226,201,0.015) 0, rgba(12,10,8,0) 3px);
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.6;
  z-index: 0;
}

.dev-gate-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  width: 100%;
}

.dev-gate-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 42px 48px 36px;
  min-width: 340px;
  max-width: 440px;
  border: 1px solid var(--gate-hair-2);
  border-radius: 4px;
  background: rgba(12,10,8,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 24px 80px rgba(0,0,0,0.8),
    0 0 0 1px rgba(212,122,46,0.08),
    0 0 60px rgba(212,122,46,0.1);
  text-align: center;
}

.dev-gate-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gate-ember);
}

.dev-gate-title {
  font-family: 'Cinzel', serif;
  font-size: 46px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gate-cream);
  text-shadow: 0 2px 14px rgba(0,0,0,0.9), 0 0 30px rgba(212,122,46,0.35);
  margin: -4px 0 0;
  line-height: 1;
}

.dev-gate-sub {
  font-family: 'Crimson Pro', 'Georgia', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--gate-text-dim);
  line-height: 1.45;
  margin: 0 0 8px;
  max-width: 320px;
}

.dev-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  width: 100%;
  margin-top: 8px;
}

.gate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 3px;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.gate-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.gate-btn-primary {
  background: #5865F2;
  color: #fff;
  border-color: #5865F2;
}
.gate-btn-primary:hover {
  background: #4752C4;
  border-color: #4752C4;
  transform: translateY(-1px);
}

.gate-btn-secondary {
  background: transparent;
  color: var(--gate-text-dim);
  border-color: var(--gate-hair-2);
}
.gate-btn-secondary:hover {
  color: var(--gate-cream);
  border-color: var(--gate-hair-2);
}

.gate-link {
  background: none;
  border: none;
  color: var(--gate-text-faint);
  font-family: 'Crimson Pro', 'Georgia', serif;
  font-style: italic;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.15s;
}
.gate-link:hover { color: var(--gate-cream); }

.dev-gate-footer {
  margin-top: 14px;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--gate-text-faint);
  text-decoration: none;
  transition: color 0.15s;
}
.dev-gate-footer:hover { color: var(--gate-cream); }

/* R&R username/password modal */
.rnr-login-modal {
  position: fixed;
  inset: 0;
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rnr-login-modal[hidden] { display: none !important; }

.rnr-login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7,6,10,0.78);
  backdrop-filter: blur(4px);
}

.rnr-login-panel {
  position: relative;
  width: 340px;
  max-width: 92vw;
  padding: 28px 28px 24px;
  border: 1px solid var(--gate-hair-2);
  border-radius: 4px;
  background: rgba(26,22,16,0.97);
  color: var(--gate-cream);
  box-shadow: 0 24px 80px rgba(0,0,0,0.8);
}
.rnr-login-panel h2 {
  margin: 0 0 14px;
  font-family: 'Cinzel', serif;
  font-size: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gate-cream);
}
.rnr-login-panel label {
  display: block;
  margin: 10px 0;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gate-text-dim);
}
.rnr-login-panel input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  background: rgba(12,10,8,0.7);
  border: 1px solid var(--gate-hair-2);
  border-radius: 3px;
  color: var(--gate-cream);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  letter-spacing: 0.3px;
}
.rnr-login-panel input:focus {
  outline: none;
  border-color: var(--gate-ember);
  box-shadow: 0 0 0 2px rgba(212,122,46,0.2);
}
.rnr-login-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: var(--gate-text-faint);
  font-size: 22px;
  cursor: pointer;
  padding: 4px 10px;
  line-height: 1;
}
.rnr-login-close:hover { color: var(--gate-cream); }
.rnr-login-err {
  margin-top: 10px;
  min-height: 16px;
  font-family: 'Crimson Pro', 'Georgia', serif;
  font-style: italic;
  font-size: 12px;
  color: #cc5555;
}
.rnr-login-form button[type="submit"] {
  width: 100%;
  margin-top: 10px;
}

@media (max-width: 520px) {
  .dev-gate-card {
    min-width: auto;
    width: 100%;
    padding: 32px 24px 28px;
  }
  .dev-gate-title { font-size: 36px; letter-spacing: 4px; }
}
