.auth-page{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
  background:linear-gradient(180deg, #0C1A2D 0%, #061322 50%, #05101E 100%);
  background-repeat:no-repeat;
  position:relative;
  overflow:hidden;
}
#constellation{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:0;
}

.maintenance-banner {
  padding: 10px 16px;
  color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

.maintenance-banner--restrictive { background: #9a5800; }
.maintenance-banner--full { background: #8a1c14; }

.maintenance-banner__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.maintenance-banner__title { font-size: 14px; }
.maintenance-banner__text { font-size: 13px; }

html, body{
  height:100%;
  margin:0;
  font-family:"Segoe UI", system-ui, sans-serif;
}
.auth-page *{ box-sizing:border-box; }

.auth-page .auth__card{
  position:relative;
  z-index:1;
  width:100%;
  max-width:480px;
  background:#071423;
  border:1px solid #0f2640;
  border-radius:24px;
  padding:42px 44px;
  box-shadow:0 12px 40px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.03);
}

.auth-page .auth__brand{ display:flex; align-items:center; justify-content:center; gap:10px; margin-bottom:22px; text-align:center; flex-direction:column; }
.auth-page .auth__logo{ width:64px; height:64px; margin-bottom:8px; }
.auth-page .auth__brand-text{ 
  font-weight:600; 
  letter-spacing:.2px; 
  font-size:32px;
  color:transparent;
  background-image:linear-gradient(90deg, #F9F9FC 0%, #F9F9FC 40%, #EB8B21 50%, #F9F9FC 60%, #F9F9FC 100%);
  background-size:300% 100%;
  background-position:100% 0;
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  animation:glint-sweep 1s ease-in-out 0.5s;
}
@keyframes glint-sweep{
  0%{ background-position:100% 0; }
  100%{ background-position:0% 0; }
}

.auth-page .auth__title{ margin:6px 0 24px; font-size:28px; line-height:1.2; font-weight:100; text-align:center; color:#F9F9FC; }
.auth-page .auth__subtitle{ margin:0 0 26px; text-align:center; color:#A6B7C7; font-size:15px; }

.auth-page .auth__flash{
  margin:0 0 16px;
  padding:10px 12px;
  border-radius:10px;
  background:#1a2b3f;
  color:#F9F9FC;
  font-size:14px;
  text-align:center;
}

.auth-page .auth__flash--error{
  background:#251720;
  border:1px solid #5a2b3b;
  color:#ffb2b2;
  font-weight:600;
}

.auth-page .auth__flash--success{
  background:#15261f;
  border:1px solid #2b5844;
  color:#98e8b0;
  font-weight:600;
}

.auth-page .form__group{ margin-bottom:16px; }
.auth-page .form__label{ display:block; color:#F9F9FC; opacity:.92; font-size:14px; margin:0 0 8px; }
.auth-page .form__input{
  width:100%;
  height:46px;
  padding:0 14px;
  border-radius:10px;
  background:#061221;
  border:1px solid #0B1A2C;
  color:#F9F9FC;
  outline:none;
  transition:border-color .2s, box-shadow .2s, background .2s;
}
.auth-page textarea.form__input{ height:auto; padding:10px 14px; resize:vertical; }
.auth-page .form__input::placeholder{ color:rgba(255,255,255,.45); }
.auth-page .form__input:hover{ border-color:rgba(235,139,33,0.35); background:#0a1a2e; }
.auth-page .form__input:focus{ background:#0E2437; border-color:rgba(255,255,255,0.12); box-shadow:0 0 0 4px rgba(20,51,74,.5); }

.auth-page .btn{
  display:inline-flex; align-items:center; justify-content:center; width:100%; height:48px;
  border-radius:10px; border:1px solid transparent; font-weight:700; cursor:pointer;
  text-decoration:none;
  transition:transform .04s, box-shadow .2s, opacity .2s, filter .2s;
}
.auth-page .btn:active{ transform:translateY(1px); }

.auth-page .btn--primary{ color:#EB8B21; background:transparent; border-color:#EB8B21; }
.auth-page .btn--primary:hover{ color:#FFFFFF; background:#EB8B21; border-color:#EB8B21; }

.auth-page .btn--secondary{ background:#061120; color:#EB8B21; border-color:#233044; box-shadow:inset 0 1px 0 rgba(255,255,255,.05); }
.auth-page .btn--secondary:hover{ background:#0e1f35; border-color:rgba(235,139,33,0.4); color:#EB8B21; }

.auth-page .auth__divider{ position:relative; display:flex; align-items:center; justify-content:center; gap:12px; color:#A6B7C7; font-size:14px; margin:18px 0; }
.auth-page .auth__divider::before,
.auth-page .auth__divider::after{ content:""; flex:1; height:1px; background:linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent); }

@media (max-width:520px){
  .auth-page .auth__card{ padding:28px 22px; }
  .auth-page .auth__title{ font-size:24px; }
}

/* Downloads Page */
.download-section{
  max-width:600px;
  margin:0 auto;
  padding:3rem 1.5rem;
}
.download-header{
  text-align:center;
  margin-bottom:2rem;
}
.download-title{
  font-size:2rem;
  font-weight:600;
  margin-bottom:0.5rem;
  color:#F9F9FC;
  letter-spacing:0.2px;
}
.download-subtitle{
  color:#A6B7C7;
  font-size:15px;
  margin:0;
}
.download-card{
  background:#071423;
  border:1px solid #0f2640;
  border-radius:12px;
  padding:0;
  overflow:hidden;
}
.os-tabs{
  display:flex;
  border-bottom:1px solid #0f2640;
}
.os-tab{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0.5rem;
  padding:1rem;
  background:transparent;
  border:none;
  color:#A6B7C7;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  transition:all 0.2s ease;
  border-bottom:2px solid transparent;
}
.os-tab:hover{
  color:#F9F9FC;
  background:rgba(235, 139, 33, 0.05);
}
.os-tab.active{
  color:#EB8B21;
  border-bottom-color:#EB8B21;
  background:rgba(235, 139, 33, 0.08);
}
.tab-icon{
  width:18px;
  height:18px;
  fill:currentColor;
}
.tab-content{
  display:none;
  padding:1.5rem;
}
.tab-content.active{
  display:block;
}
.code-block{
  position:relative;
  margin:0.75rem 0;
}
.copy-btn{
  position:absolute;
  top:0.5rem;
  right:0.5rem;
  padding:0.5rem;
  background:#0f2640;
  border:1px solid #1a3a5a;
  border-radius:6px;
  color:#A6B7C7;
  cursor:pointer;
  transition:all 0.2s ease;
  z-index:10;
  display:flex;
  align-items:center;
  justify-content:center;
}
.copy-btn:hover{
  background:#1a3a5a;
  color:#F9F9FC;
  border-color:#EB8B21;
}
.console-wrapper{
  border:1px solid #1a3a5a;
  border-radius:8px;
  overflow:hidden;
  margin:1rem 0;
}
.console-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:#0a1929;
  border-bottom:1px solid #1a3a5a;
  padding:0.375rem 0.5rem;
}
.install-tabs{
  display:flex;
  gap:0.25rem;
}
.install-tab{
  padding:0.5rem 1rem;
  background:transparent;
  border:none;
  color:#A6B7C7;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  transition:all 0.2s ease;
  border-radius:4px;
}
.install-tab:hover{
  background:rgba(235, 139, 33, 0.1);
  color:#F9F9FC;
}
.install-tab.active{
  background:rgba(235, 139, 33, 0.15);
  color:#EB8B21;
}
.copy-btn-header{
  padding:0.5rem;
  background:transparent;
  border:1px solid #1a3a5a;
  border-radius:4px;
  color:#A6B7C7;
  cursor:pointer;
  transition:all 0.2s ease;
  display:flex;
  align-items:center;
  justify-content:center;
}
.copy-btn-header:hover{
  background:#0f2640;
  color:#F9F9FC;
  border-color:#EB8B21;
}
.install-content{
  display:none;
}
.install-content.active{
  display:block;
}
.install-content pre{
  margin:0;
  background:#050d18;
  padding:1rem;
  max-height:200px;
  overflow-y:auto;
}
.install-content pre::-webkit-scrollbar{
  width:8px;
}
.install-content pre::-webkit-scrollbar-track{
  background:#0a1929;
  border-radius:4px;
}
.install-content pre::-webkit-scrollbar-thumb{
  background:#1a3a5a;
  border-radius:4px;
}
.install-content pre::-webkit-scrollbar-thumb:hover{
  background:#2a4a6a;
}
.install-content code{
  color:#4ade80;
  font-family:'Consolas', 'Monaco', monospace;
}
.install-note{
  color:#A6B7C7;
  font-size:13px;
  margin-top:0.5rem;
}
.install-instructions p{
  color:#A6B7C7;
  margin:0.75rem 0 0.5rem;
}
.download-btn{
  display:block;
  width:100%;
  padding:0.75rem 1rem;
  background:transparent;
  color:#EB8B21;
  text-decoration:none;
  border-radius:8px;
  margin-bottom:0.5rem;
  font-weight:600;
  font-size:14px;
  text-align:center;
  transition:all 0.2s ease;
  border:1px solid #EB8B21;
}
.download-btn:hover{
  background:rgba(235, 139, 33, 0.12);
  border-color:#F5A64A;
  transform:translateY(-1px);
}
.download-btn.secondary{
  background:transparent;
  color:#EB8B21;
  border-color:#EB8B21;
}
.download-btn.secondary:hover{
  background:rgba(235, 139, 33, 0.12);
  border-color:#F5A64A;
  transform:translateY(-1px);
}
.install-instructions{
  background:#061221;
  border:1px solid #0B1A2C;
  border-radius:8px;
  padding:1rem;
  margin-top:1rem;
  font-size:14px;
}
.install-instructions h3{
  color:#A6B7C7 !important;
  font-size:14px;
  font-weight:600;
  margin:0 0 0.75rem 0;
}
.install-instructions pre{
  background:#000;
  padding:0.875rem;
  border-radius:6px;
  overflow-x:auto;
  margin:0.5rem 0 0 0;
  border:1px solid #0B1A2C;
}
.install-instructions ol{
  margin:0.5rem 0 0 0;
  padding-left:1.25rem;
  color:#A6B7C7;
}
.install-instructions li{
  margin-bottom:0.375rem;
}
.usage-section{
  background:#071423;
  border:1px solid #0f2640;
  border-radius:12px;
  padding:1.5rem;
  margin-top:1.5rem;
}
.usage-section h2{
  color:#F9F9FC;
  margin:0 0 1rem 0;
  font-size:1.125rem;
  font-weight:600;
}
.usage-section pre{
  background:#000;
  padding:0.875rem;
  border-radius:6px;
  overflow-x:auto;
  margin:0;
  border:1px solid #0B1A2C;
}
.usage-section pre code{
  color:#F9F9FC;
  background:none;
  padding:0;
  font-family:'Courier New', monospace;
  font-size:13px;
  line-height:1.6;
}
.usage-section p{
  color:#A6B7C7;
  font-size:14px;
  margin:1.5rem 0 0 0;
}
.usage-section a{
  color:#EB8B21;
  text-decoration:none;
}
.usage-section a:hover{
  text-decoration:underline;
}
.version-info{
  text-align:center;
  color:#A6B7C7;
  font-size:14px;
  margin-top:2rem;
  padding-top:1.5rem;
  border-top:1px solid rgba(255, 255, 255, 0.08);
}
.version-info a{
  color:#EB8B21;
  text-decoration:none;
}
.version-info a:hover{
  text-decoration:underline;
}
.back-link{
  display:inline-block;
  text-align:center;
  margin-top:1.5rem;
  color:#A6B7C7;
  text-decoration:none;
  font-size:14px;
  transition:color 0.2s;
}
.back-link:hover{
  color:#EB8B21;
}
@media (max-width:520px){
  .download-section{ padding:2rem 1rem; }
  .download-title{ font-size:1.5rem; }
  .os-tab{ font-size:13px; padding:0.875rem 0.5rem; }
  .tab-icon{ width:16px; height:16px; }
  .tab-content{ padding:1.25rem; }
}

/* EULA Page */
.auth-page .auth__card--wide{
  max-width:920px;
}
.eula__buttons .btn--primary:disabled,
.auth__card .btn--primary:disabled{
  background:transparent;
  border-color:#2A4A70;
  color:#7BA3C0;
  cursor:not-allowed;
  opacity:0.6;
}
.eula__header{
  display:flex;
  justify-content:flex-end;
  margin:0 0 16px;
}
.eula__scroll{
  height:520px;
  overflow:auto;
  padding:32px 36px;
  background:#061221;
  border:1px solid #0B1A2C;
  border-radius:14px;
  color:#D5DFEA;
  line-height:1.6;
  font-size:15px;
}
.eula__scroll h2{
  margin:40px 0 8px;
  color:#F9F9FC;
  font-size:18px;
  font-weight:700;
  letter-spacing:0.5px;
  border-bottom:1px solid #0B1A2C;
  padding-bottom:12px;
}
.eula__scroll h2:first-child{
  margin-top:0;
}
.eula__scroll h3{
  margin:28px 0 16px;
  color:#F9F9FC;
  font-size:16px;
  font-weight:600;
}
.eula__scroll p{
  margin:0 0 20px;
  text-align:left;
  word-spacing:0.05em;
}
.eula__scroll p strong{
  color:#EB8B21;
  font-weight:700;
}
.eula__scroll .clause{
  display:grid;
  grid-template-columns:50px 1fr;
  gap:12px;
  margin-bottom:8px;
  align-items:flex-start;
}
.eula__scroll .clause.nested-1{
  grid-template-columns:50px 1fr;
  margin-left:0;
}
.eula__scroll .clause.nested-2{
  grid-template-columns:50px 1fr;
  margin-left:20px;
}
.eula__scroll .clause.nested-3{
  grid-template-columns:50px 1fr;
  margin-left:40px;
}
.eula__scroll .clause-num{
  display:block;
  color:#EB8B21;
  font-weight:600;
  font-size:14px;
  white-space:nowrap;
  text-align:right;
}
.eula__scroll::-webkit-scrollbar{
  width:14px;
}
.eula__scroll::-webkit-scrollbar-track{
  background:#0B1A2C;
  border-radius:10px;
}
.eula__scroll::-webkit-scrollbar-thumb{
  background:#1E3A5F;
  border-radius:10px;
}
.eula__scroll::-webkit-scrollbar-thumb:hover{
  background:#EB8B21;
}
.eula__scroll{
  scrollbar-width:thin;
  scrollbar-color:#1E3A5F #0B1A2C;
}
.eula__status{
  margin:12px 0 18px;
  font-size:13px;
  color:#A6B7C7;
  text-align:center;
}
.eula__checkbox{
  display:flex;
  align-items:flex-start;
  gap:10px;
  color:#F9F9FC;
  font-size:14px;
  margin:0 0 16px;
}
.eula__checkbox input{
  margin-top:4px;
  accent-color:#EB8B21;
}
.eula__buttons{
  display:flex;
  gap:12px;
}
.eula__buttons .btn{
  flex:1;
}
@media (max-width:720px){
  .auth__card--wide{ padding:30px 24px; }
  .eula__scroll{ height:420px; padding:24px; }
  .eula__buttons{ flex-direction:column; }
}
