@media (max-width:900px) {
  .login-fields {
    max-width:330px;
  }

  .name {
    font-size:32px;
  }

}

/* Login alignment and control refinement */
.login-fields {
  width:322px;
  padding-left:17px;
  border-left:1px solid rgba(184,225,251,.18);
}
.login-fields .name,
.login-fields .email,
.login-fields .label {
  width:100%;
  text-align:left;
}
.login-fields .name {
  font-size:36px;
  line-height:1.05;
  letter-spacing:-.8px;
}
.login-fields .email {
  margin-top:6px;
  color:rgba(220,238,251,.67);
  line-height:1.35;
  opacity:1;
}
.login-fields .label {
  margin-top:24px;
  margin-bottom:9px;
  padding-left:1px;
  color:rgba(239,247,255,.82);
}
.password-row {
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) 36px;
  gap:13px;
}
#passwordInput {
  width:100%;
}
#passwordInput.login-password-error {
  border-color:#ff7185;
  background:linear-gradient(to bottom,#fff6f7,#ffdce2 52%,#f4b6c1);
  box-shadow:inset 0 3px 6px rgba(104,0,20,.25),0 0 0 2px rgba(255,75,105,.16),0 0 18px rgba(255,62,96,.24);
}
.login-error {
  min-height:18px;
  margin-top:8px;
  padding-left:2px;
  color:#ffd3dc;
  font-size:11px;
  line-height:1.35;
  text-shadow:0 2px 8px rgba(45,0,15,.8);
}

.login-system-actions {
  position:absolute;
  z-index:20;
  left:54px;
  bottom:25px;
  display:flex;
  align-items:flex-start;
  gap:18px;
  transition:opacity .65s ease,transform .85s cubic-bezier(.19,1,.22,1),filter .65s ease;
}
.login-system-action,
.power-btn.login-system-action {
  position:relative;
  left:auto;
  bottom:auto;
  width:76px;
  display:grid;
  justify-items:center;
  text-align:center;
  color:#fff;
  font-size:13px;
  text-shadow:0 2px 5px rgba(0,0,0,.9);
  cursor:pointer;
  opacity:.86;
}
.login-system-action .user-label {
  width:100%;
  min-height:16px;
  margin-top:8px;
  line-height:1.2;
}
.info-icon {
  color:#fff;
  font:700 25px/1 Georgia,serif;
  background:radial-gradient(circle at 35% 35%,#fff 0%,#82e2ff 22%,#1e77d0 63%,#071f54 100%);
}
.login-system-action:hover {opacity:1}
.login-system-action:hover .power-icon {
  transform:scale(1.12);
  box-shadow:0 0 18px rgba(46,157,255,.9),0 5px 12px rgba(0,0,0,.4);
}
body.logging-in .login-system-actions {
  opacity:0 !important;
  transform:translate3d(0,70px,0) scale(.92) !important;
  filter:blur(8px) !important;
  pointer-events:none !important;
}
.users-tray {
  align-items:flex-start;
}
.users-tray > .user,
.users-tray > .add-user {
  width:104px;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.users-tray .user-label {
  width:100%;
  min-height:32px;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  line-height:1.2;
  text-align:center;
}
.add-user {display:flex;flex-direction:column;align-items:center}

/* Account panels use one consistent Aqua card and footer rhythm. */
.profile-panel {
  max-height:calc(100vh - 48px);
  overflow:auto;
  padding:26px;
  border-radius:22px;
  background:
    radial-gradient(circle at 12% 0%,rgba(117,220,255,.19),transparent 35%),
    linear-gradient(150deg,rgba(28,79,139,.94),rgba(3,17,52,.98));
}
.profile-panel h2 {
  font-size:25px;
  font-weight:600;
  letter-spacing:-.35px;
}
.profile-panel .sub {
  max-width:500px;
  margin:7px 0 20px;
  color:rgba(220,239,252,.67);
  line-height:1.5;
  opacity:1;
}
.profile-mode-switch {
  width:100%;
  display:grid;
  grid-template-columns:1fr 1fr;
  margin:0 0 21px;
  border-radius:12px;
}
.profile-mode-switch button {
  width:100%;
  border-radius:9px;
}
.creator-grid {
  padding:17px;
  border:1px solid rgba(181,225,251,.14);
  border-radius:17px;
  background:rgba(0,9,37,.2);
}
.creator-fields {gap:12px}
.creator-field label {
  margin-left:1px;
  color:rgba(226,241,252,.76);
}
.creator-field input {
  border-radius:11px;
}
.creator-actions {
  margin-top:18px;
  padding-top:17px;
  border-top:1px solid rgba(180,220,248,.14);
}
.overlay-btn {
  min-width:108px;
  border-radius:10px;
}
.form-error {
  text-align:left;
}
.delete-panel {width:min(660px,100%)}
.delete-profile-grid {
  grid-template-columns:repeat(auto-fit,minmax(126px,1fr));
  gap:12px;
  padding:12px;
  border:1px solid rgba(181,225,251,.14);
  border-radius:17px;
  background:rgba(0,9,37,.2);
}
.delete-choice {
  display:grid;
  grid-template-columns:58px minmax(0,1fr);
  align-items:center;
  gap:11px;
  min-height:82px;
  padding:11px;
  border-radius:14px;
  text-align:left;
}
.delete-choice img {
  width:56px;
  height:56px;
  margin:0;
  border-radius:12px;
}
.delete-choice.selected img {
  filter:none;
  opacity:1;
}
.delete-password-step,
.delete-permanent-step {
  padding:15px;
  border:1px solid rgba(181,225,251,.14);
  border-radius:16px;
  background:rgba(0,9,37,.2);
}
.info-panel {width:min(540px,100%)}
.info-panel-brand {
  display:grid;
  grid-template-columns:82px minmax(0,1fr);
  align-items:center;
  gap:17px;
}
.info-panel-logo {
  width:82px;
  height:82px;
  display:grid;
  place-items:center;
  border:1px solid rgba(205,241,255,.38);
  border-radius:22px;
  background:rgba(78,190,225,.1);
}
.info-panel-logo img {width:68px;height:68px}
.info-panel-brand span {
  color:rgba(156,225,249,.65);
  font-size:9px;
  font-weight:700;
  letter-spacing:1.6px;
  text-transform:uppercase;
}
.info-panel-brand h2 {margin-top:5px}
.info-panel > p {
  margin:20px 0 14px;
  color:rgba(222,240,252,.74);
  font-size:12px;
  line-height:1.65;
}
.info-panel-note {
  padding:12px 14px;
  border:1px solid rgba(155,216,246,.16);
  border-radius:12px;
  color:rgba(196,226,245,.66);
  background:rgba(2,17,53,.34);
  font-size:10.5px;
}

/* Keep the brand centered while the loading rail owns the lower edge. */
.boot-brand-layout {
  padding:0 7vw !important;
}
.boot-status {
  top:auto !important;
  bottom:60px !important;
}
.boot-dot-loader {
  top:auto !important;
  bottom:25px !important;
  width:min(980px,88vw) !important;
  height:14px !important;
  grid-template-columns:repeat(30,1fr) !important;
  gap:10px !important;
}
.boot-dot {
  height:6px;
}

@media(max-height:700px) {
  .login-system-actions {left:34px;bottom:14px}
  .boot-status {bottom:50px !important}
  .boot-dot-loader {bottom:18px !important}
}

/* About enters and leaves with the rest of the lower login shelf. */
body.login-reveal-ready .login-system-actions,
body.returning-from-desktop .login-system-actions {
  opacity:0 !important;
  filter:blur(7px);
  transform:translate3d(0,70px,0) scale(.95);
}
body.login-bottom-visible .login-system-actions,
body.returning-from-desktop.return-ready .login-system-actions {
  opacity:1 !important;
  filter:blur(0);
  transform:translate3d(0,0,0) scale(1);
  transition:transform .95s cubic-bezier(.16,1,.3,1),opacity .62s ease,filter .62s ease;
}
body.login-sequence-complete .login-system-actions {pointer-events:auto}
body.logging-in.login-bottom-visible .login-system-actions,
body.logging-in .login-system-actions {
  opacity:0 !important;
  transform:translate3d(0,70px,0) scale(.92) !important;
  filter:blur(8px) !important;
  pointer-events:none !important;
}
html.aqua-graphics-fallback #threeCanvas{
  background:
    radial-gradient(circle at 31% 38%,rgba(91,190,242,.48),transparent 28%),
    radial-gradient(circle at 70% 28%,rgba(29,105,199,.38),transparent 34%),
    linear-gradient(145deg,#061a43 0%,#0d4b89 48%,#031333 100%);
}

html.aqua-graphics-fallback .loading-glow{
  opacity:.35;
}

.aqua-banned-notice{position:fixed;z-index:12000;inset:0;display:grid;place-items:center;padding:24px;background:rgba(0,7,21,.62);backdrop-filter:blur(10px);opacity:0;transition:opacity .25s ease}.aqua-banned-notice.visible{opacity:1}.aqua-banned-notice.leaving{opacity:0}.aqua-banned-notice>section{display:grid;justify-items:center;width:min(450px,calc(100vw - 48px));padding:25px 28px 22px;border:1px solid rgba(139,217,255,.58);border-radius:17px;background:linear-gradient(145deg,rgba(17,77,119,.97),rgba(0,17,50,.98));box-shadow:0 28px 75px rgba(0,0,0,.6),inset 0 1px rgba(255,255,255,.2);color:#fff;text-align:center;transform:translateY(12px) scale(.98);transition:transform .28s ease}.aqua-banned-notice.visible>section{transform:none}.aqua-banned-icon{display:grid;place-items:center;width:48px;height:48px;margin-bottom:10px;border:1px solid rgba(255,165,165,.65);border-radius:50%;background:linear-gradient(180deg,#d85a68,#651d37);box-shadow:inset 0 1px rgba(255,255,255,.35),0 5px 18px rgba(0,0,0,.3);font:bold 24px Tahoma}.aqua-banned-notice span{color:#8cddff;font:bold 8px Tahoma;letter-spacing:.14em;text-transform:uppercase}.aqua-banned-notice h1{margin:5px 0 9px;font:700 25px/1.08 "Segoe UI",Tahoma,sans-serif}.aqua-banned-notice p{max-width:370px;margin:0;color:rgba(223,240,251,.78);font:11px/1.55 Tahoma}.aqua-banned-notice strong{margin:13px 0 17px;color:#fff;font:bold 12px Tahoma}.aqua-banned-notice button{min-width:135px;padding:9px 14px;border:1px solid rgba(202,239,255,.8);border-radius:9px;background:linear-gradient(180deg,#65c9f1,#1674ba);box-shadow:inset 0 1px rgba(255,255,255,.45),0 4px 12px rgba(0,0,0,.28);color:#fff;font:bold 10px Tahoma;text-shadow:0 1px rgba(0,0,0,.5);cursor:pointer}.aqua-banned-notice button:hover{filter:brightness(1.1)}
