*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --rb-bg: #050816;
  --rb-bg2: #0f172a;
  --rb-accent: #3b82f6;
  --rb-card: #0b1220;
  --rb-border: rgba(148, 163, 184, 0.25);
  --rb-text: #e5e7eb;
  --rb-muted: #9ca3af;
  --rb-danger: #f97373;
  --rb-radius: 18px;
  --rb-shadow: 0 18px 45px rgba(15, 23, 42, 0.7);
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--rb-text);
  background: radial-gradient(circle at top, #1e293b, #020617 60%);
}

.rb-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.25), transparent 50%),
    radial-gradient(circle at 80% 0%, rgba(236, 72, 153, 0.22), transparent 55%);
  opacity: 0.9;
}

.rb-wrapper {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px;
  z-index: 1;
}

.rb-logo {
  margin-bottom: 18px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #e5e7eb;
  text-shadow: 0 0 18px rgba(15, 23, 42, 0.9);
}

.rb-logo span {
  font-weight: 400;
  font-size: 16px;
  margin-left: 6px;
  color: var(--rb-muted);
}

.rb-card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(135deg, #020617 0%, #020617 35%, #020617 100%);
  border-radius: var(--rb-radius);
  border: 1px solid var(--rb-border);
  box-shadow: var(--rb-shadow);
  padding: 28px 26px 24px;
  backdrop-filter: blur(16px);
}

.rb-card h1 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rb-sub {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--rb-muted);
}

.rb-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.rb-field label {
  font-size: 13px;
  color: var(--rb-muted);
}

.rb-field input {
  border-radius: 12px;
  border: 1px solid var(--rb-border);
  padding: 9px 11px;
  font-size: 14px;
  background-color: #020617;
  color: var(--rb-text);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.rb-field input::placeholder {
  color: #6b7280;
}

.rb-field input:focus {
  border-color: var(--rb-accent);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35);
  background-color: #020617;
}

.rb-btn-primary {
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 10px 14px;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background 0.12s ease;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.45);
}

.rb-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.5);
}

.rb-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.45);
}

.rb-error {
  min-height: 18px;
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--rb-danger);
}

.rb-meta {
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  background-color: rgba(15, 23, 42, 0.7);
  padding: 10px 11px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--rb-muted);
}

@media (max-width: 480px) {
  .rb-card {
    padding: 22px 18px 18px;
  }

  .rb-logo {
    font-size: 22px;
  }
}
