/* NIGHTIME landing page — login / sign-up styling (2016-style layout, original night theme).
   Replaces the old Roblox-hosted CSS. No external images are used. */

:root {
  --nt-blue: #0075ff;
  --nt-blue-dark: #0057c2;
  --nt-blue-deep: #0000ff;
  --nt-bg-0: #050914;
  --nt-bg-1: #0a1330;
  --nt-bg-2: #12224f;
  --nt-card: rgba(255, 255, 255, 0.92);
  --nt-text: #2b3245;
  --nt-muted: #7a839a;
  --nt-error: #e5384d;
  --nt-ok: #1fb36b;
  --nt-green: #00b247;
  --nt-green-dark: #009a3d;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: #e8ecf8;
  background: var(--nt-bg-0);
}
img { border: 0; vertical-align: middle; max-width: 100%; }
a { color: var(--nt-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 10px; font-weight: 600; line-height: 1.15; }
p { margin: 0 0 10px; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select { font-family: inherit; font-size: 100%; margin: 0; }
button { cursor: pointer; }
[ng-cloak], .ng-cloak { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.clearfix::after, .row::after, .container::after, .container-fluid::after { content: ""; display: table; clear: both; }
.center-block { display: block; margin-left: auto; margin-right: auto; }
.img-responsive { display: block; max-width: 100%; height: auto; }
.pull-left { float: left; }
.pull-right { float: right; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }
.text-danger, .text-error { color: var(--nt-error); }
.lead { font-size: 19px; font-weight: 300; line-height: 1.5; }
.font-bold { font-weight: 700; }

/* ---------- grid (the subset of Bootstrap 3 this page uses) ---------- */
.container { margin: 0 auto; padding: 0 15px; width: 100%; }
.container-fluid { padding: 0; width: 100%; }
.row { margin-left: -15px; margin-right: -15px; }
.container-fluid > .row { margin-left: 0; margin-right: 0; }
[class*="col-"] { position: relative; min-height: 1px; padding-left: 15px; padding-right: 15px; }
.col-xs-2, .col-xs-8, .col-xs-12, .col-4 { float: left; }
.col-xs-2 { width: 16.6667%; }
.col-xs-8 { width: 66.6667%; }
.col-xs-12 { width: 100%; }
.col-xs-offset-2 { margin-left: 16.6667%; }

@media (min-width: 768px) {
  .container { width: 750px; }
  .col-sm-4, .col-sm-5, .col-sm-6 { float: left; }
  .col-sm-4 { width: 33.3333%; }
  .col-sm-5 { width: 41.6667%; }
  .col-sm-6 { width: 50%; }
  .col-sm-offset-6 { margin-left: 50%; }
  .visible-sm { display: block !important; }
}
@media (min-width: 992px) {
  .container { width: 970px; }
  .col-md-6, .col-md-12 { float: left; }
  .col-md-6 { width: 50%; }
  .col-md-12 { width: 100%; }
  .col-md-offset-3 { margin-left: 25%; }
}
@media (min-width: 1200px) {
  .container { width: 1170px; }
}
@media (max-width: 767px)  { .hidden-xs { display: none !important; } }
@media (min-width: 992px)  { .hidden-lg-only, .visible-sm { display: none !important; } }
@media (min-width: 1200px) { .hidden-lg { display: none !important; } }
.visible-lg-block { display: none !important; }
@media (min-width: 1200px) { .visible-lg-block { display: block !important; } }

/* ---------- navbar ---------- */
.navbar {
  position: relative;
  min-height: 62px;
  background: linear-gradient(#0c1330, #070b1d);
  border-bottom: 2px solid var(--nt-blue);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.5);
}
.navbar-fixed-top { position: fixed; top: 0; left: 0; right: 0; z-index: 1030; }
.navbar-landing .container { padding-top: 0; }
.navbar-header { min-height: 60px; }
.navbar-brand { float: left; height: 60px; padding: 9px 22px 9px 0; }
.navbar-brand img.robloxLogo { height: 42px; width: auto; display: block; }
.navbar-nav { float: left; margin: 0; position: relative; }
.navbar-nav > li { position: relative; }
.navbar-nav > li > a {
  display: block;
  padding: 0 18px;
  line-height: 60px;
  font-size: 17px;
  font-weight: 600;
  color: #c9d3f0;
  text-decoration: none;
  transition: color 0.15s;
}
.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus { color: #fff; text-decoration: none; }
#magic-line {
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 3px;
  background: var(--nt-blue);
  box-shadow: 0 0 10px var(--nt-blue);
  pointer-events: none;
}
.navbar-toggle {
  display: none;
  float: right;
  margin: 12px 0;
  padding: 0 14px;
  height: 36px;
  color: #fff;
  background: var(--nt-blue);
  border: 0;
  border-radius: 4px;
  font-weight: 600;
}

/* login form in the bar */
.navbar-collapse { padding: 0; }
.navbar-right { float: right; }
#LogInForm { margin: 0; padding: 11px 0; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: flex-end; gap: 8px; }
#LogInForm .form-group { margin: 0; }
#LogInForm .form-control {
  display: block;
  width: 150px;
  height: 36px;
  padding: 0 11px;
  font-size: 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  outline: 0;
  transition: border-color 0.15s, background 0.15s;
}
#LogInForm .form-control::placeholder { color: #8e9ac0; }
#LogInForm .form-control:focus { border-color: var(--nt-blue); background: rgba(0, 117, 255, 0.14); }
#LogInForm #LoginButton {
  width: 86px;
  font-weight: 700;
  color: #fff;
  background: var(--nt-blue);
  border-color: var(--nt-blue);
  cursor: pointer;
}
#LogInForm #LoginButton:hover { background: var(--nt-blue-dark); border-color: var(--nt-blue-dark); }
#HeaderForgotPassword {
  flex: 0 0 100%;
  text-align: right;
  margin-top: -2px;
  font-size: 12px;
  color: #8fb4ff;
}
#msgcont { flex: 0 0 100%; text-align: right; }
#login-error-message { font-size: 13px; margin-top: 2px; }

@media (min-width: 768px) {
  .navbar-collapse.collapse { display: block !important; height: auto !important; overflow: visible; }
}
@media (max-width: 767px) {
  .navbar-toggle { display: block; }
  .navbar-nav { float: none; clear: both; }
  .navbar-nav > li { float: none; }
  .navbar-nav > li > a { line-height: 40px; }
  #magic-line { display: none; }
  .navbar-collapse.collapse { display: none; padding: 0 15px 12px; }
  .navbar-collapse.collapse.in { display: block; }
  .navbar-right { float: none; }
  #LogInForm { justify-content: stretch; }
  #LogInForm .form-group { flex: 1 1 100%; }
  #LogInForm .form-control, #LogInForm #LoginButton { width: 100%; }
  #HeaderForgotPassword, #msgcont { text-align: left; }
}

/* ---------- hero ---------- */
#RollerContainer {
  position: relative;
  min-height: 100vh;
  padding: 62px 0 0;
  overflow: hidden;
  background:
    radial-gradient(1200px 520px at 22% 108%, rgba(0, 117, 255, 0.35), transparent 70%),
    radial-gradient(900px 480px at 85% -10%, rgba(80, 60, 200, 0.28), transparent 70%),
    linear-gradient(180deg, #060b1f 0%, #0a1536 55%, #12275c 100%);
}
/* stars */
#RollerContainer::before,
#RollerContainer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-repeat: repeat;
}
#RollerContainer::before {
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, #fff 60%, transparent 62%),
    radial-gradient(1px 1px at 28% 64%, #cfe0ff 60%, transparent 62%),
    radial-gradient(1.6px 1.6px at 47% 28%, #fff 60%, transparent 62%),
    radial-gradient(1px 1px at 63% 78%, #cfe0ff 60%, transparent 62%),
    radial-gradient(1.4px 1.4px at 78% 22%, #fff 60%, transparent 62%),
    radial-gradient(1px 1px at 91% 55%, #fff 60%, transparent 62%),
    radial-gradient(1.2px 1.2px at 6% 82%, #fff 60%, transparent 62%),
    radial-gradient(1px 1px at 38% 90%, #cfe0ff 60%, transparent 62%);
  background-size: 520px 420px;
  opacity: 1;
}
#RollerContainer::after {
  background-image:
    radial-gradient(1px 1px at 20% 40%, #9fc2ff 60%, transparent 62%),
    radial-gradient(1.8px 1.8px at 55% 55%, #fff 60%, transparent 62%),
    radial-gradient(1px 1px at 72% 12%, #9fc2ff 60%, transparent 62%),
    radial-gradient(1.2px 1.2px at 88% 85%, #fff 60%, transparent 62%),
    radial-gradient(1px 1px at 33% 8%, #fff 60%, transparent 62%);
  background-size: 760px 560px;
  opacity: 0.6;
}
.full-height-section { position: relative; }
.inner-full-height-section { position: relative; z-index: 1; float: none; width: 100%; }
#InnerRollerContainer { min-height: calc(100vh - 62px); display: flex; align-items: center; }
#MainCenterContainer { width: 100%; max-width: 1170px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; padding: 30px 0 60px; }
#MainCenterContainer > [class*="col-"] { float: none; }

/* logo + slogan */
#MainLogo { padding: 10px 0; }
#LogoAndSlogan { max-width: 520px; margin: 0 auto; }
#MainLogoImage {
  width: 100%;
  max-width: 480px;
  filter: drop-shadow(0 0 22px rgba(0, 117, 255, 0.55));
}
#LogoAndSlogan h1 {
  margin: 14px 0 0;
  padding: 10px 0;
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 0.5px;
  color: #fff;
  background: linear-gradient(90deg, transparent, rgba(0, 117, 255, 0.35) 20%, rgba(0, 117, 255, 0.35) 80%, transparent);
  border-top: 1px solid rgba(143, 180, 255, 0.35);
  border-bottom: 1px solid rgba(143, 180, 255, 0.35);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
#LogoAndSlogan h1 span { font-size: 0.55em; vertical-align: super; }

/* ---------- sign-up card ---------- */
#SignUpFormContainer { max-width: 440px; margin: 0 auto; }
.rbx-login-partial-legacy {
  position: relative;
  padding: 24px 30px 28px;
  color: var(--nt-text);
  background: var(--nt-card);
  border-radius: 6px;
  border-top: 4px solid var(--nt-blue);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);
}
.rbx-login-partial-legacy h3.signup-header,
.rbx-login-partial-legacy h3.login-header {
  margin: 0 0 18px;
  font-size: 25px;
  font-weight: 600;
  color: #1b2340;
}

.signup-input-area .form-group { position: relative; margin: 0 0 12px; }
.signup-input-area .form-control.input-field,
.signup-input-area input.form-control {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-size: 16px;
  color: #1b2340;
  background: #fff;
  border: 1px solid #c7cddc;
  border-radius: 4px;
  outline: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.signup-input-area input.form-control::placeholder { color: #98a1b8; }
.signup-input-area input.form-control:focus {
  border-color: var(--nt-blue);
  box-shadow: 0 0 0 3px rgba(0, 117, 255, 0.18);
}
.signup-input-area .has-error input.form-control,
.signup-input-area .has-error .fake-input-lg { border-color: var(--nt-error); }
.signup-input-area .has-success input.form-control,
.signup-input-area .has-success .fake-input-lg { border-color: var(--nt-ok); }
.input-validation { min-height: 0; margin: 4px 2px 0; font-size: 13px; line-height: 1.3; }
.input-validation:empty { display: none; }

/* birthday + gender rows */
.birthday-container .form-group,
.gender-container .form-group { margin-bottom: 12px; }
.fake-input-lg {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #c7cddc;
  border-radius: 4px;
}
.fake-input-lg label {
  margin: 0;
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 600;
  color: #4a5370;
}
.birthday-label { min-width: 68px; }
.rbx-select-group { position: relative; flex: 1 1 0; min-width: 0; }
.rbx-select-group.month { flex: 1.5 1 0; }
.rbx-select-group select,
.special-dropdown select {
  display: block;
  width: 100%;
  height: 34px;
  padding: 0 24px 0 8px;
  font-size: 14px;
  color: #1b2340;
  background-color: #f3f5fb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%230075ff'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  border: 1px solid #d5daea;
  border-radius: 3px;
  outline: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  text-overflow: ellipsis;
}
.rbx-select-group select:focus { border-color: var(--nt-blue); }

/* gender icons (pure CSS / inline SVG, no external images) */
.gender-container .fake-input-lg { gap: 12px; }
.gender-circle {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eef1f8;
  border: 2px solid #d5daea;
  cursor: pointer;
  outline: 0;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.gender-circle:hover, .gender-circle:focus { border-color: var(--nt-blue); transform: translateY(-1px); }
.gender-circle.selected-gender {
  background: #dcebff;
  border-color: var(--nt-blue);
  box-shadow: 0 0 0 3px rgba(0, 117, 255, 0.22);
}
.cover-sprite.gender {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
}
.cover-sprite.gender.male {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7' r='4' fill='%234a5370'/%3E%3Cpath d='M4 22c0-5 3.5-8 8-8s8 3 8 8z' fill='%234a5370'/%3E%3C/svg%3E");
}
.cover-sprite.gender.female {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='6.5' r='4' fill='%234a5370'/%3E%3Cpath d='M12 12.5c-1.5 0-2.8.4-3.8 1.1L4 22h16l-4.2-8.4c-1-.7-2.3-1.1-3.8-1.1z' fill='%234a5370'/%3E%3C/svg%3E");
}
.gender-circle.selected-gender .cover-sprite.gender.male {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7' r='4' fill='%230075ff'/%3E%3Cpath d='M4 22c0-5 3.5-8 8-8s8 3 8 8z' fill='%230075ff'/%3E%3C/svg%3E");
}
.gender-circle.selected-gender .cover-sprite.gender.female {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='6.5' r='4' fill='%230075ff'/%3E%3Cpath d='M12 12.5c-1.5 0-2.8.4-3.8 1.1L4 22h16l-4.2-8.4c-1-.7-2.3-1.1-3.8-1.1z' fill='%230075ff'/%3E%3C/svg%3E");
}

/* buttons */
.btn-primary-md,
.btn-secondary-md {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 6px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 0;
  border-radius: 4px;
  transition: background 0.15s, transform 0.05s, box-shadow 0.15s;
}
.btn-primary-md {
  color: #fff;
  background: var(--nt-green);
  box-shadow: 0 2px 0 var(--nt-green-dark);
}
.btn-primary-md:hover { background: #00c74f; }
.btn-primary-md:active { transform: translateY(1px); box-shadow: none; }
.btn-primary-md[disabled], .btn-primary-md:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-secondary-md { color: #4a5370; background: #e6e9f3; box-shadow: 0 2px 0 #c7cddc; }
.btn-secondary-md:hover { background: #dce0ee; }
.captcha-container { padding-top: 4px; }
.captcha-container .btn-primary-md, .captcha-container .btn-secondary-md { margin-top: 10px; }

/* messages */
#signuperror-message { margin-top: 10px; font-size: 14px; }
.alert-warning, #GeneralErrorText {
  margin-top: 10px;
  padding: 9px 12px;
  font-size: 14px;
  color: #8a1f2d;
  background: #fde8eb;
  border: 1px solid #f5b8c1;
  border-radius: 4px;
  cursor: pointer;
}
#GeneralErrorText:empty { display: none; }

.attribution {
  position: absolute;
  right: 18px;
  bottom: 14px;
  z-index: 2;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(207, 224, 255, 0.55);
  text-align: right;
}

/* ---------- modal (Bootstrap-style, used by the confirmation dialog) ---------- */
.modal { display: none; position: fixed; inset: 0; z-index: 1050; overflow-y: auto; background: rgba(2, 5, 15, 0.7); }
.modal.in { display: block; }
.modal-dialog { position: relative; width: auto; max-width: 520px; margin: 60px auto; padding: 0 15px; }
.modal-content { color: var(--nt-text); background: #fff; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); }
.modal-header { position: relative; padding: 14px 18px; border-bottom: 1px solid #e3e7f1; }
.modal-header .close { position: absolute; right: 14px; top: 10px; font-size: 24px; background: none; border: 0; color: #7a839a; }
.modal-body { padding: 18px; }
.modal-footer { padding: 12px 18px; text-align: right; border-top: 1px solid #e3e7f1; }
.btn { display: inline-block; padding: 7px 16px; border: 0; border-radius: 4px; font-weight: 600; }
.btn-default { color: #4a5370; background: #e6e9f3; }
.btn-primary { color: #fff; background: var(--nt-blue); }
.fade { opacity: 1; }

/* ---------- below the fold ---------- */
#WhatsRobloxContainer { background: #070c1f; padding-bottom: 0; }
#InnerWhatsRobloxContainer1 {
  min-height: 420px;
  padding: 60px 0;
  color: #fff;
  background:
    radial-gradient(800px 360px at 15% 30%, rgba(0, 117, 255, 0.28), transparent 70%),
    linear-gradient(135deg, #0a1536, #0e1d4a);
  border-top: 1px solid rgba(143, 180, 255, 0.2);
}
#WhatIsRobloxTextBg h1 { font-size: 34px; font-weight: 700; letter-spacing: 1px; }
#WhatIsRobloxTextBg { background: rgba(5, 9, 20, 0.55); border-radius: 6px; padding-top: 22px; padding-bottom: 14px; }
#InnerWhatsRobloxContainer2 { margin: 0; display: flex; gap: 10px; padding: 10px; background: #050914; }
.game-image {
  float: none;
  flex: 1 1 0;
  min-height: 190px;
  margin: 0 !important;
  width: auto !important;
  border-radius: 4px;
  background: linear-gradient(135deg, #0d2a6b, #0075ff 140%);
}
#GameImage2 { background: linear-gradient(135deg, #101a45, #3a3fd1 140%); }
#GameImage3 { background: linear-gradient(135deg, #0a1f55, #00a6ff 140%); }

#DeviceSection { padding: 60px 0 40px; text-align: center; color: #e8ecf8; background: linear-gradient(#070c1f, #0b1537); }
#RobloxDeviceText h2 { font-size: 30px; font-weight: 700; letter-spacing: 1px; }
#RobloxDeviceText .lead { max-width: 640px; color: #b7c3e6; }
#DeviceImageContainer { margin: 20px 0; }
#AppStoreContainer { margin-top: 10px; }
#AppStoreContainer li { display: inline-block; }
.app-store-logo { max-height: 56px; width: auto; }

/* footer */
.container-footer { padding: 28px 15px 36px; color: #8e9ac0; background: #04070f; border-top: 1px solid rgba(143, 180, 255, 0.18); }
.footer { max-width: 970px; margin: 0 auto; }
.footer-links { margin: 0 0 14px; text-align: center; }
.footer-links::after { content: ""; display: table; clear: both; }
.footer-link { padding: 4px 8px; }
.footer-link a, .text-footer-nav { color: #c9d3f0; font-weight: 600; }
.footer-link a:hover { color: #fff; }
.text-footer { font-size: 12px; line-height: 1.6; color: #6f7a9c; }
.text-footer .text-link, .text-footer a { color: #8fb4ff; }

@media (max-width: 991px) {
  #InnerRollerContainer { align-items: flex-start; }
  #MainCenterContainer { padding-top: 24px; }
  #LogoAndSlogan h1 { font-size: 24px; }
}
@media (max-width: 767px) {
  #RollerContainer { padding-top: 0; }
  .navbar-fixed-top { position: relative; }
  .text-justify { text-align: left; }
  .footer-links { display: flex; flex-wrap: wrap; justify-content: center; }
  .footer-link { float: none; width: auto; }
  .navbar-landing .container { padding: 0 15px; }
  .rbx-login-partial-legacy { padding: 20px 18px 22px; }
  #InnerWhatsRobloxContainer2 { flex-direction: column; }
  .game-image { min-height: 150px; }
  .col-xs-offset-2 { margin-left: 16.6667%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* images that used to be hotlinked from Roblox are gone: hide them, style the download link instead */
.ComputerImg, #DeviceImageContainer, .app-store-logo { display: none !important; }
.app-store-link-amazon {
  display: inline-block; padding: 13px 28px; font-size: 18px; font-weight: 700; color: #fff;
  background: var(--nt-blue); border-radius: 4px; box-shadow: 0 2px 0 var(--nt-blue-dark);
}
.app-store-link-amazon::after { content: "Download NIGHTIME for Windows"; }
.app-store-link-amazon:hover { background: var(--nt-blue-dark); text-decoration: none; }
