:root {
  --rl-bg: #020617;
  --rl-card-bg: #020617;
  --rl-border: #1e293b;
  --rl-text-main: #e5e7eb;
  --rl-text-sub: #9ca3af;
  --rl-accent: #22c55e;
  --rl-accent-blue: #38bdf8;
  --rl-error: #f97373;
  --rl-radius-lg: 20px;
  --rl-radius-md: 12px;
  --rl-shadow: 0 25px 70px rgba(15, 23, 42, 0.9);
  --rl-font: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI",
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--rl-font);
  background: radial-gradient(circle at top left, #0f172a, #020617 45%, #020617);
  color: var(--rl-text-main);
}

/* PAGE LAYOUT */

.rl-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.rl-card {
  width: 100%;
  max-width: 540px;
  background: radial-gradient(circle at top, #020617 0, #020617 55%, #020617);
  border-radius: var(--rl-radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.9);
  box-shadow: var(--rl-shadow);
  padding: 24px 26px 22px;
}

/* HEADER */

.rl-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.rl-logo-circle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 0%, #facc15, #f97316);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: #111827;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.9);
}

.rl-header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rl-brand-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.rl-brand-tag {
  margin: 0;
  font-size: 0.78rem;
  color: var(--rl-text-sub);
}

.rl-access-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.12);
  color: #bbf7d0;
  font-size: 0.72rem;
}

.rl-chip-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
}

/* INTRO */

.rl-intro h2 {
  margin: 0;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.rl-intro p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--rl-text-sub);
}

/* FORM */

.rl-form-section {
  margin-top: 18px;
}

.rl-field {
  margin-bottom: 14px;
}

.rl-field label {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 6px;
  color: var(--rl-text-sub);
}

.rl-field-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rl-field-top label {
  margin-bottom: 0;
}

.rl-link-btn {
  border: none;
  background: transparent;
  color: var(--rl-accent-blue);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
}

.rl-link-btn:hover {
  text-decoration: underline;
}

.rl-field input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid #1e293b;
  background: #020617;
  color: var(--rl-text-main);
  font-size: 0.9rem;
  outline: none;
}

.rl-field input::placeholder {
  color: #4b5563;
}

.rl-field input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.6);
}

/* ERROR BOX */

.rl-error {
  margin-top: 4px;
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: var(--rl-error);
  background: rgba(248, 113, 113, 0.06);
  border-radius: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(248, 113, 113, 0.5);
}

/* LOGIN BUTTON */

.rl-login-btn {
  width: 100%;
  margin-top: 4px;
  padding: 11px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: #f9fafb;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  box-shadow: 0 18px 40px rgba(22, 163, 74, 0.55);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
    filter 0.12s ease-out;
}

.rl-login-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.rl-login-btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.5);
}

.rl-small-note {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: var(--rl-text-sub);
}

/* FOOTER TEXT */

.rl-footer {
  margin-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  padding-top: 10px;
  font-size: 0.76rem;
  color: var(--rl-text-sub);
}

.rl-footer p {
  margin: 4px 0;
}

/* MOBILE */

@media (max-width: 640px) {
  .rl-card {
    padding: 20px 18px 18px;
  }

  .rl-intro h2 {
    font-size: 1.25rem;
  }
}
