:root {
  color-scheme: light;
  --cream: #fffaf0;
  --parchment: #f5e5c4;
  --parchment-deep: #e1bd7d;
  --ink: #4b301f;
  --muted: #896746;
  --gold: #d89b31;
  --gold-light: #ffe083;
  --gold-dark: #764313;
  --blue: #2398d0;
  --blue-dark: #0b5b96;
  --green: #4f9d5e;
  --green-dark: #28623d;
  --danger: #b34038;
  --success: #347d42;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-width: 320px; min-height: 100%; margin: 0; }
body {
  overflow: hidden;
  color: var(--ink);
  background: #70c2e7;
  font-family: Georgia, "Times New Roman", serif;
}
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  isolation: isolate;
  background: #70c2e7;
  perspective: 1000px;
}
.boot-copy {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  color: #fff8d6;
  text-shadow: 0 2px 8px rgba(24, 67, 41, .6);
}

.scene-wrap {
  position: absolute;
  z-index: -8;
  top: -18px;
  right: -18px;
  bottom: -18px;
  left: -18px;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transition: opacity 1.2s ease, transform .45s cubic-bezier(.2, .75, .25, 1);
  will-change: transform;
}
.is-ready .scene-wrap { opacity: 1; }
.scene {
  position: absolute;
  top: -3%;
  right: -3%;
  bottom: -3%;
  left: -3%;
  background: url('/portal-assets/canaan-portal-scene.png') center center / cover no-repeat;
  transform: scale(1.035);
  animation: scene-breathe 19s ease-in-out infinite alternate;
  will-change: transform;
}
.scene-depth {
  position: absolute;
  z-index: -7;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 54, 39, .30), transparent 31%, transparent 67%, rgba(17, 52, 39, .25)),
    linear-gradient(0deg, rgba(10, 49, 25, .24), transparent 36%),
    radial-gradient(circle at 76% 10%, rgba(255, 248, 177, .35), transparent 25%);
  animation: daylight 8s ease-in-out infinite alternate;
}
.sky-light {
  position: absolute;
  z-index: -6;
  right: -8%;
  top: -20%;
  width: 58%;
  height: 80%;
  opacity: .42;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(255, 253, 200, .78), rgba(255, 233, 141, .18) 36%, transparent 70%);
  mix-blend-mode: screen;
  transition: transform .7s ease-out;
  animation: sun-glow 6s ease-in-out infinite alternate;
}
.vignette {
  position: absolute;
  z-index: 19;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  box-shadow: inset 0 0 90px rgba(19, 58, 35, .20), inset 0 -45px 80px rgba(12, 45, 24, .20);
}

.brand {
  position: absolute;
  z-index: 8;
  left: 4.8%;
  top: 4.4%;
  width: 435px;
  opacity: 0;
  color: #fff7d5;
  text-align: center;
  pointer-events: none;
  transform: translateY(-24px);
  transition: opacity .9s ease .18s, transform .9s cubic-bezier(.2, .8, .2, 1) .18s;
  filter: drop-shadow(0 7px 9px rgba(24, 55, 29, .48));
}
.is-ready .brand { opacity: 1; transform: translateY(0); }
.brand-float { position: relative; animation: logo-float 5s ease-in-out infinite; }
.brand-rule {
  position: absolute;
  top: 42px;
  width: 92px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffe68a);
  box-shadow: 0 0 9px rgba(255, 227, 123, .72);
}
.brand-rule.left { left: 0; }
.brand-rule.right { right: 0; transform: scaleX(-1); }
.brand-gem {
  position: relative;
  display: inline-block;
  width: 29px;
  height: 29px;
  margin-bottom: -2px;
  transform: rotate(45deg);
  border: 2px solid #fff0a0;
  background: linear-gradient(135deg, #a1f0ff, #218dce 53%, #0a478d);
  box-shadow: 0 0 0 4px rgba(226, 165, 48, .72), 0 0 22px rgba(117, 224, 255, .88);
  animation: gem-pulse 3s ease-in-out infinite;
}
.brand h1 {
  position: relative;
  margin: 0;
  overflow: hidden;
  color: #fff8db;
  font-size: 70px;
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .88;
  text-shadow: 0 2px 0 #a36a1d, 0 4px 0 #66400e, 0 0 16px rgba(255, 225, 112, .68), 0 7px 13px rgba(28, 53, 25, .58);
}
.brand h1::after {
  content: "";
  position: absolute;
  top: -24%;
  left: -32%;
  width: 15%;
  height: 155%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent);
  filter: blur(2px);
  transform: rotate(15deg);
  animation: logo-sweep 6.2s ease-in-out infinite 1.1s;
}
.brand-subtitle {
  display: block;
  margin-top: 10px;
  color: #ffe89e;
  font: 700 16px/1 Arial, sans-serif;
  letter-spacing: .48em;
  text-indent: .48em;
  text-transform: uppercase;
  text-shadow: 0 2px 3px rgba(44, 48, 20, .75), 0 0 10px rgba(255, 220, 93, .58);
}
.brand-star {
  position: absolute;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: #fff4a2;
  box-shadow: 0 0 8px #ffe250, 0 0 16px rgba(255, 215, 66, .85);
  animation: twinkle 2.6s ease-in-out infinite;
}
.brand-star.s1 { left: 43px; top: 7px; }
.brand-star.s2 { right: 39px; top: 24px; animation-delay: .75s; }
.brand-star.s3 { right: 88px; bottom: -7px; animation-delay: 1.45s; }

.journey-note {
  position: absolute;
  z-index: 7;
  left: 6.2%;
  top: 27.5%;
  width: 285px;
  padding: 12px 14px 12px 50px;
  opacity: 0;
  border: 1px solid rgba(255, 224, 126, .55);
  border-radius: 10px 24px 24px 10px;
  color: #fff8dd;
  background: linear-gradient(90deg, rgba(28, 73, 44, .82), rgba(31, 77, 48, .55));
  box-shadow: 0 9px 22px rgba(20, 48, 28, .24), inset 0 1px rgba(255,255,255,.12);
  text-shadow: 0 1px 2px rgba(20, 42, 24, .8);
  transform: translateX(-20px);
  transition: opacity .8s ease .65s, transform .8s ease .65s;
}
.is-ready .journey-note { opacity: 1; transform: translateX(0); }
.journey-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  transform: rotate(45deg);
  border: 2px solid #f6d46e;
  background: radial-gradient(circle, #d8f8ff 0, #51b7df 35%, #146ca6 70%);
  box-shadow: 0 0 10px rgba(108, 219, 255, .7);
}
.journey-note strong { display: block; font-size: 14px; line-height: 1.1; }
.journey-note small { display: block; margin-top: 4px; color: #e7efcd; font: 10px/1.3 Arial, sans-serif; }

.preferences {
  position: absolute;
  z-index: 14;
  right: 4.3%;
  top: 18px;
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 9px;
  opacity: 0;
  border: 1px solid rgba(255, 225, 132, .58);
  border-radius: 14px;
  color: #fff8df;
  background: linear-gradient(180deg, rgba(36, 80, 51, .86), rgba(24, 61, 39, .78));
  box-shadow: 0 8px 20px rgba(20, 48, 29, .25), inset 0 1px rgba(255,255,255,.13);
  text-shadow: 0 1px 2px rgba(18, 43, 25, .8);
  transform: translateY(-16px);
  transition: opacity .7s ease .75s, transform .7s ease .75s;
}
.is-ready .preferences { opacity: 1; transform: translateY(0); }
.language-switch {
  position: relative;
  display: flex;
  width: 78px;
  height: 29px;
  padding: 3px;
  overflow: hidden;
  border: 1px solid rgba(255, 229, 145, .38);
  border-radius: 10px;
  background: rgba(9, 43, 28, .48);
  box-shadow: inset 0 2px 5px rgba(9,31,19,.28);
}
.language-marker {
  position: absolute;
  z-index: 0;
  left: 3px;
  top: 3px;
  width: 34px;
  height: 21px;
  border-radius: 7px;
  background: linear-gradient(#55b3d7, #1677ad);
  box-shadow: 0 2px 5px rgba(9,38,55,.35), inset 0 1px rgba(226,249,255,.6);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.preferences.english .language-marker { transform: translateX(36px); }
.language-button {
  position: relative;
  z-index: 1;
  flex: 1;
  border: 0;
  padding: 0;
  color: rgba(255, 248, 219, .67);
  background: transparent;
  cursor: pointer;
  font: 700 9px/21px Arial, sans-serif;
  transition: color .25s ease, text-shadow .25s ease;
}
.language-button + .language-button { margin-left: 2px; }
.language-button.active { color: #fffdf0; text-shadow: 0 1px 2px #07527d; }
.remember-control {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 10px;
  cursor: pointer;
  white-space: nowrap;
  font: 700 9px/1 Arial, sans-serif;
}
.remember-control input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.toggle-track {
  position: relative;
  display: inline-block;
  width: 29px;
  height: 16px;
  margin-right: 7px;
  border: 1px solid rgba(255,228,141,.42);
  border-radius: 10px;
  background: rgba(8, 38, 25, .58);
  box-shadow: inset 0 2px 4px rgba(5,26,16,.3);
  transition: background .25s ease;
}
.toggle-track i {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d9d0a9;
  box-shadow: 0 1px 3px rgba(10,32,18,.45);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), background .25s ease;
}
.remember-control input:checked + .toggle-track { background: rgba(71, 163, 84, .72); }
.remember-control input:checked + .toggle-track i { transform: translateX(13px); background: #f7f0b4; }
.remember-control input:focus + .toggle-track { box-shadow: 0 0 0 2px rgba(99,207,244,.35), inset 0 2px 4px rgba(5,26,16,.3); }
.save-state {
  position: absolute;
  right: 8px;
  bottom: -20px;
  opacity: 0;
  color: #fff8cf;
  font: 700 9px/1 Arial, sans-serif;
  text-shadow: 0 1px 3px rgba(17,45,26,.8);
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.save-state i { margin-right: 4px; color: #8be06a; font-style: normal; }
.save-state.visible { opacity: 1; transform: translateY(0); }

.portal-energy {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 42%;
  width: 282px;
  height: 386px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: filter .45s ease, opacity .45s ease;
}
.portal-core {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 50%;
  opacity: .7;
  background: radial-gradient(ellipse, rgba(218, 250, 255, .32), rgba(85, 201, 255, .27) 34%, rgba(39, 133, 255, .12) 55%, transparent 72%);
  box-shadow: 0 0 48px rgba(74, 198, 255, .30), inset 0 0 44px rgba(188, 244, 255, .19);
  mix-blend-mode: screen;
  animation: portal-breathe 3.1s ease-in-out infinite;
}
.energy-ring {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
}
.energy-ring.one {
  top: 10%;
  right: 14%;
  bottom: 10%;
  left: 14%;
  border: 1px solid rgba(167, 238, 255, .50);
  box-shadow: 0 0 17px rgba(105, 218, 255, .42), inset 0 0 19px rgba(155, 232, 255, .25);
  animation: ring-turn 8s linear infinite;
}
.energy-ring.two {
  top: 18%;
  right: 21%;
  bottom: 18%;
  left: 21%;
  border: 2px dotted rgba(182, 240, 255, .42);
  animation: ring-turn-back 12s linear infinite;
}
.rune {
  position: absolute;
  width: 7px;
  height: 7px;
  opacity: .3;
  transform: rotate(45deg);
  background: #c6f5ff;
  box-shadow: 0 0 8px #7cddff;
  animation: rune-blink 2.8s ease-in-out infinite;
}
.rune.r1 { left: 14%; top: 22%; }
.rune.r2 { right: 12%; top: 31%; animation-delay: .4s; }
.rune.r3 { left: 9%; top: 55%; animation-delay: .8s; }
.rune.r4 { right: 10%; top: 66%; animation-delay: 1.2s; }
.rune.r5 { left: 29%; bottom: 5%; animation-delay: 1.6s; }
.rune.r6 { right: 27%; top: 6%; animation-delay: 2s; }
.is-focused .portal-energy { filter: brightness(1.18) saturate(1.15); }
.is-focused .portal-core { animation-duration: 1.8s; }
.is-loading .portal-energy { filter: brightness(1.32) saturate(1.25); }
.is-loading .energy-ring.one { animation-duration: 2.2s; }
.is-loading .energy-ring.two { animation-duration: 3.4s; }

.particles {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease .55s;
}
.is-ready .particles { opacity: 1; }
.particles.far { z-index: -3; filter: blur(.3px); }
.particles.near { z-index: 11; }
.particle { position: absolute; display: block; opacity: 0; will-change: transform, opacity; }
.particle.mote {
  width: 4px;
  height: 4px;
  transform: rotate(45deg);
  background: #fff3a0;
  box-shadow: 0 0 7px #ffe150, 0 0 12px rgba(255,255,255,.74);
  animation: mote-rise linear infinite;
}
.particles.near .particle.mote { width: 6px; height: 6px; }
.particle.leaf {
  width: 14px;
  height: 8px;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, #ddeb72, #519738 72%);
  box-shadow: inset 1px 0 rgba(255,255,255,.42), 0 2px 3px rgba(34,78,20,.28);
  animation: leaf-fall linear infinite;
}
.particle.spark {
  width: 3px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(transparent, #c6f6ff, transparent);
  box-shadow: 0 0 8px rgba(101, 219, 255, .8);
  animation: spark-orbit ease-in-out infinite;
}

.auth-shell {
  position: absolute;
  z-index: 13;
  right: 4.3%;
  top: 51%;
  width: 424px;
  max-width: calc(100% - 34px);
  padding: 70px 27px 22px;
  opacity: 0;
  transform: translate3d(34px, -50%, 0) rotateY(-4deg);
  border: 2px solid #a96519;
  border-radius: 23px;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 252, 242, .98), rgba(245, 226, 188, .98)),
    repeating-linear-gradient(0deg, rgba(128,78,24,.04) 0, rgba(128,78,24,.04) 1px, transparent 1px, transparent 4px);
  box-shadow:
    0 23px 48px rgba(23, 50, 27, .40),
    0 0 0 5px rgba(255, 240, 190, .68),
    0 0 0 7px rgba(112, 66, 15, .32),
    inset 0 0 0 1px rgba(255,255,255,.95),
    inset 0 -22px 34px rgba(168,103,26,.10);
  transition: opacity .85s ease .35s, transform .9s cubic-bezier(.18,.82,.24,1) .35s, padding .4s ease;
  will-change: transform, opacity;
}
.is-ready .auth-shell { opacity: 1; transform: translate3d(0, -50%, 0) rotateY(0); }
.auth-shell::before {
  content: "";
  position: absolute;
  top: 9px;
  right: 9px;
  bottom: 9px;
  left: 9px;
  border: 1px solid rgba(167, 98, 19, .36);
  border-radius: 15px;
  pointer-events: none;
}
.auth-shell::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -9px;
  width: 18px;
  height: 18px;
  transform: translateX(-50%) rotate(45deg);
  border: 1px solid #8f5317;
  background: linear-gradient(135deg, #a8efff, #258dcc 52%, #0b4d91);
  box-shadow: 0 0 0 4px #e7b64a, 0 0 13px rgba(54, 167, 220, .55);
}
.panel-cap {
  position: absolute;
  z-index: 1;
  left: 45px;
  right: 45px;
  top: -39px;
  height: 91px;
  overflow: hidden;
  border: 2px solid #a96619;
  border-bottom: 0;
  border-radius: 56% 56% 14px 14px;
  background: #fffaf0;
  box-shadow: 0 -3px 0 4px rgba(255, 239, 187, .7), 0 -4px 0 6px rgba(112,66,15,.25), 0 8px 14px rgba(93,56,16,.10);
}
.crest-art {
  position: absolute;
  left: 50%;
  top: 0;
  width: 282px;
  height: 93px;
  transform: translateX(-50%);
  background-color: #fffaf0;
  background-image: url('/portal-assets/canaan-login-ui.png');
  background-repeat: no-repeat;
  background-position: -101px -17px;
  background-size: 1672px 941px;
}
.panel-ribbon {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 40px;
  width: 218px;
  padding: 5px 10px 6px;
  transform: translateX(-50%);
  border: 1px solid #b47520;
  border-radius: 12px;
  color: #fff7d7;
  background: linear-gradient(#3e9dc9, #1475ac 54%, #0c558a);
  box-shadow: 0 3px 7px rgba(71,52,22,.22), inset 0 1px rgba(219,248,255,.65);
  font: 700 10px/1 Arial, sans-serif;
  letter-spacing: .13em;
  text-align: center;
  text-shadow: 0 1px 2px #064c78;
  text-transform: uppercase;
}
.corner {
  position: absolute;
  z-index: 3;
  width: 17px;
  height: 17px;
  border: 2px solid #b77420;
  background: #f9e6b8;
  box-shadow: inset 0 0 0 3px #fff4d6;
  transform: rotate(45deg);
}
.corner.tl { left: 3px; top: 3px; }
.corner.tr { right: 3px; top: 3px; }
.corner.bl { left: 3px; bottom: 3px; }
.corner.br { right: 3px; bottom: 3px; }
.panel-content { position: relative; z-index: 4; transition: opacity .18s ease, transform .18s ease, filter .18s ease; }
.mode-switching .panel-content { opacity: .18; transform: translateY(7px); filter: blur(1px); }
.mode-entering .panel-content { animation: content-return .38s cubic-bezier(.2,.8,.2,1) both; }

.panel-title { position: relative; margin: 0 0 11px; text-align: center; }
.panel-kicker {
  display: block;
  margin-bottom: 5px;
  color: #b17627;
  font: 700 9px/1 Arial, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.panel-title h2 { margin: 0 0 4px; color: #60401f; font-size: 28px; line-height: 1; }
.panel-title p { margin: 0; color: var(--muted); font: 11px/1.35 Arial, sans-serif; }

.realm-status {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 39px;
  margin-bottom: 10px;
  padding: 7px 44px 7px 13px;
  border: 1px solid rgba(124, 78, 24, .27);
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(123,80,25,.10), rgba(255,255,255,.36));
  box-shadow: inset 0 1px 4px rgba(106,65,17,.08), 0 1px rgba(255,255,255,.8);
}
.realm-orb {
  width: 10px;
  height: 10px;
  margin-right: 9px;
  border-radius: 50%;
  background: #78d556;
  box-shadow: 0 0 0 3px rgba(113,209,80,.15), 0 0 9px rgba(103,207,72,.72);
  animation: server-pulse 2.1s ease-in-out infinite;
}
.realm-copy strong { display: block; color: #5d432b; font: 700 11px/1.2 Arial, sans-serif; }
.realm-copy small { display: block; margin-top: 2px; color: #9a7954; font: 9px/1 Arial, sans-serif; }
.realm-state {
  position: absolute;
  right: 11px;
  top: 50%;
  margin-top: -8px;
  color: #3d8449;
  font: 700 9px/16px Arial, sans-serif;
  text-transform: uppercase;
}

.tabs {
  position: relative;
  display: flex;
  height: 43px;
  margin-bottom: 12px;
  padding: 4px;
  overflow: hidden;
  border: 1px solid rgba(132,82,24,.30);
  border-radius: 11px;
  background: rgba(125,75,21,.08);
  box-shadow: inset 0 1px 4px rgba(100,58,15,.10);
}
.tab-marker {
  position: absolute;
  z-index: 0;
  left: 4px;
  top: 4px;
  width: calc(50% - 6px);
  height: 33px;
  border-radius: 8px;
  background: linear-gradient(#50acd3, #187eb7 55%, #0c5b91);
  box-shadow: 0 2px 6px rgba(41,67,83,.28), inset 0 1px rgba(222,249,255,.68);
  transition: transform .42s cubic-bezier(.2,.78,.22,1);
}
.registering .tab-marker { transform: translateX(calc(100% + 4px)); }
.tab {
  position: relative;
  z-index: 1;
  flex: 1;
  border: 0;
  border-radius: 8px;
  padding: 9px 7px;
  color: #7a562e;
  background: transparent;
  cursor: pointer;
  font: 700 10px/1 Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .3s ease, text-shadow .3s ease;
}
.tab + .tab { margin-left: 4px; }
.tab.active { color: #fffaf0; text-shadow: 0 1px 2px #074d78; }

form { position: relative; display: block; }
.field {
  position: relative;
  display: block;
  margin-bottom: 9px;
  color: #73512f;
  font: 700 9px/1.2 Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.field-name { display: block; margin: 0 0 4px 4px; transition: color .2s ease; }
.field.focus .field-name { color: #197db4; }
.input-shell { position: relative; display: block; }
.input-icon {
  position: absolute;
  z-index: 2;
  left: 13px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  opacity: .54;
  transition: opacity .2s ease, transform .2s ease;
}
.input-icon.user {
  border: 2px solid #8b663c;
  border-radius: 50% 50% 42% 42%;
}
.input-icon.user::after {
  content: "";
  position: absolute;
  left: -4px;
  bottom: -7px;
  width: 18px;
  height: 8px;
  border: 2px solid #8b663c;
  border-bottom: 0;
  border-radius: 11px 11px 0 0;
}
.input-icon.lock {
  top: 53%;
  height: 12px;
  border: 2px solid #8b663c;
  border-radius: 2px;
}
.input-icon.lock::before {
  content: "";
  position: absolute;
  left: 2px;
  top: -8px;
  width: 6px;
  height: 7px;
  border: 2px solid #8b663c;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
}
.field.focus .input-icon { opacity: .9; transform: scale(1.08); filter: hue-rotate(155deg) saturate(1.5); }
input {
  width: 100%;
  height: 43px;
  border: 1px solid rgba(151, 96, 33, .44);
  border-radius: 8px;
  padding: 0 13px 0 42px;
  color: #482d1c;
  background: rgba(255, 253, 246, .94);
  outline: none;
  box-shadow: inset 0 2px 5px rgba(97,57,17,.08), 0 1px rgba(255,255,255,.85);
  font: 14px/43px Arial, sans-serif;
  transition: border-color .22s ease, box-shadow .22s ease, background .22s ease, transform .22s ease;
}
input:focus {
  border-color: #3aa1d3;
  background: #fffef9;
  box-shadow: 0 0 0 3px rgba(50, 158, 211, .17), inset 0 1px 3px rgba(97,57,17,.06);
  transform: translateY(-1px);
}
.confirm-wrap {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-9px);
  pointer-events: none;
  transition: max-height .42s cubic-bezier(.2,.76,.2,1), opacity .28s ease, transform .38s ease;
}
.registering .confirm-wrap { max-height: 70px; opacity: 1; transform: translateY(0); pointer-events: auto; }

.submit {
  position: relative;
  width: 100%;
  height: 57px;
  margin-top: 5px;
  overflow: hidden;
  border: 2px solid #e7b84a;
  border-radius: 15px;
  color: #fffdf1;
  background: linear-gradient(#78c37e 0%, #4d9b5a 42%, #2d7041 100%);
  cursor: pointer;
  box-shadow: 0 4px 0 #744c14, 0 8px 15px rgba(61,51,19,.28), inset 0 1px rgba(255,255,255,.65), inset 0 -9px 16px rgba(17,75,35,.22);
  font: 700 20px/1 Georgia, "Times New Roman", serif;
  letter-spacing: .01em;
  text-shadow: 0 2px 2px #225833;
  transition: transform .16s ease, filter .16s ease, background .3s ease;
}
.submit::before, .submit::after {
  content: "\2726";
  position: absolute;
  top: 18px;
  color: #ffe47c;
  font-size: 13px;
  text-shadow: 0 0 7px rgba(255,230,116,.75);
}
.submit::before { left: 16px; }
.submit::after { right: 16px; }
.submit-label { position: relative; z-index: 3; }
.submit-shine {
  position: absolute;
  z-index: 2;
  top: -38%;
  left: -48%;
  width: 28%;
  height: 176%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.60), transparent);
  transform: rotate(18deg);
  animation: button-shine 4.5s ease-in-out infinite 1.4s;
}
.button-rune {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  opacity: 0;
  border: 2px solid rgba(255,246,175,.35);
  border-top-color: #fff3a1;
  border-radius: 50%;
  pointer-events: none;
}
.submit:hover { filter: brightness(1.1); transform: translateY(-1px); }
.submit:active { transform: translateY(3px); box-shadow: 0 1px 0 #744c14, 0 3px 8px rgba(61,51,19,.25), inset 0 1px rgba(255,255,255,.45); }
.submit:disabled { cursor: wait; transform: none; }
.is-loading .submit { filter: saturate(.8); background: linear-gradient(#63b2c8, #2787ad 45%, #176785); }
.is-loading .submit-label { opacity: .18; }
.is-loading .button-rune { opacity: 1; animation: loader-turn .8s linear infinite; }

.message {
  min-height: 17px;
  margin: 9px 0 0;
  color: var(--danger);
  font: 700 11px/1.4 Arial, sans-serif;
  text-align: center;
  text-shadow: 0 1px rgba(255,255,255,.85);
}
.message.success { color: var(--success); }
.foot { margin: 3px 0 0; color: #947350; font: 9px/1.35 Arial, sans-serif; text-align: center; }
.has-error { animation: panel-shake .42s ease; }

.launch-flash {
  position: absolute;
  z-index: 16;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%, rgba(229, 253, 255, .98), rgba(92, 211, 255, .62) 17%, rgba(63, 158, 255, .16) 37%, transparent 65%);
  mix-blend-mode: screen;
}
.launch-label {
  position: absolute;
  z-index: 18;
  left: 50%;
  top: 42%;
  width: 290px;
  margin-left: -145px;
  opacity: 0;
  color: #fffbd7;
  text-align: center;
  text-shadow: 0 2px 3px #155a83, 0 0 15px #6ae0ff;
  pointer-events: none;
}
.launch-label strong { display: block; font-size: 27px; }
.launch-label span { display: block; margin-top: 6px; font: 700 10px/1 Arial, sans-serif; letter-spacing: .22em; text-transform: uppercase; }
.is-launching .launch-flash { animation: portal-flash 1.2s ease-out forwards; }
.is-launching .launch-label { animation: launch-copy 1.1s ease-out forwards; }
.is-launching .portal-energy { animation: portal-open 1.2s cubic-bezier(.2,.8,.2,1) forwards; }
.is-launching .auth-shell { animation: panel-depart .75s ease-in forwards; pointer-events: none; }
.is-launching .brand, .is-launching .journey-note { opacity: 0; transition-delay: 0s; transition-duration: .45s; }
.is-launching .vignette { animation: vignette-clear .9s ease forwards; }

@keyframes scene-breathe {
  from { transform: scale(1.035) translate3d(-.2%, -.1%, 0); }
  to { transform: scale(1.067) translate3d(.35%, .25%, 0); }
}
@keyframes daylight { from { opacity: .73; } to { opacity: 1; } }
@keyframes sun-glow { from { opacity: .32; } to { opacity: .53; } }
@keyframes logo-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes gem-pulse { 0%,100% { filter: brightness(.95); } 50% { filter: brightness(1.2); box-shadow: 0 0 0 5px rgba(242,190,57,.77), 0 0 29px rgba(124,227,255,.95); } }
@keyframes logo-sweep { 0%,62% { left: -32%; opacity: 0; } 70% { opacity: .9; } 88% { opacity: .35; } 100% { left: 118%; opacity: 0; } }
@keyframes twinkle { 0%,100% { opacity: .24; transform: rotate(45deg) scale(.45); } 50% { opacity: 1; transform: rotate(45deg) scale(1.15); } }
@keyframes portal-breathe { 0%,100% { opacity: .56; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.07); } }
@keyframes ring-turn { from { transform: rotate(0deg) scale(.96); } 50% { transform: rotate(180deg) scale(1.04); } to { transform: rotate(360deg) scale(.96); } }
@keyframes ring-turn-back { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes rune-blink { 0%,100% { opacity: .18; transform: rotate(45deg) scale(.5); } 50% { opacity: .95; transform: rotate(45deg) scale(1.18); } }
@keyframes server-pulse { 0%,100% { transform: scale(.9); opacity: .8; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes content-return { from { opacity: .2; transform: translateY(-7px); filter: blur(1px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes button-shine { 0%,58% { left: -48%; opacity: 0; } 65% { opacity: .9; } 83%,100% { left: 120%; opacity: 0; } }
@keyframes loader-turn { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes panel-shake { 0%,100% { margin-left: 0; } 25% { margin-left: -8px; } 50% { margin-left: 7px; } 75% { margin-left: -4px; } }
@keyframes mote-rise {
  0% { opacity: 0; transform: translate3d(0, 34px, 0) rotate(45deg) scale(.4); }
  16% { opacity: .9; }
  80% { opacity: .62; }
  100% { opacity: 0; transform: translate3d(25px, -235px, 0) rotate(225deg) scale(1); }
}
@keyframes leaf-fall {
  0% { opacity: 0; transform: translate3d(-35px, -85px, 0) rotate(0); }
  10% { opacity: .84; }
  88% { opacity: .74; }
  100% { opacity: 0; transform: translate3d(120px, 108vh, 0) rotate(640deg); }
}
@keyframes spark-orbit {
  0% { opacity: 0; transform: translate3d(-18px, 26px, 0) rotate(0) scale(.5); }
  20% { opacity: .9; }
  78% { opacity: .55; }
  100% { opacity: 0; transform: translate3d(30px, -150px, 0) rotate(180deg) scale(1.15); }
}
@keyframes portal-flash { 0% { opacity: 0; } 38% { opacity: 1; } 100% { opacity: .32; } }
@keyframes launch-copy { 0% { opacity: 0; transform: translateY(18px) scale(.9); } 45%,75% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(-10px) scale(1.04); } }
@keyframes portal-open { 0% { filter: brightness(1); transform: translate(-50%,-50%) scale(1); } 55% { filter: brightness(2.25); transform: translate(-50%,-50%) scale(1.24); } 100% { filter: brightness(3); transform: translate(-50%,-50%) scale(1.65); opacity: .38; } }
@keyframes panel-depart { from { opacity: 1; transform: translate3d(0,-50%,0) scale(1); } to { opacity: 0; transform: translate3d(70px,-50%,0) scale(.96); } }
@keyframes vignette-clear { to { opacity: 0; } }

@media (max-width: 1050px) {
  .brand { left: 2.8%; width: 360px; }
  .brand h1 { font-size: 59px; }
  .brand-rule { width: 64px; }
  .journey-note { left: 4%; width: 255px; }
  .auth-shell { right: 2.6%; width: 398px; }
  .preferences { right: 2.6%; }
}
@media (max-width: 820px) {
  .scene { background-position: 52% center; }
  .scene-depth { background: rgba(16, 55, 35, .30); }
  .brand { left: 50%; top: 3.5%; width: 370px; margin-left: -185px; }
  .brand h1 { font-size: 59px; }
  .journey-note { display: none; }
  .preferences {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 14px;
    transform: translate3d(-50%, 16px, 0);
  }
  .is-ready .preferences { transform: translate3d(-50%, 0, 0); }
  .auth-shell { right: auto; left: 50%; top: 61%; transform: translate3d(-50%,-45%,0); }
  .is-ready .auth-shell { transform: translate3d(-50%,-50%,0); }
  .is-launching .auth-shell { animation-name: panel-depart-mobile; }
  @keyframes panel-depart-mobile { from { opacity: 1; transform: translate3d(-50%,-50%,0) scale(1); } to { opacity: 0; transform: translate3d(-50%,-42%,0) scale(.94); } }
}
@media (max-height: 700px) {
  .brand-float { transform: scale(.9); transform-origin: top center; animation: none; }
  .journey-note { top: 26%; }
  .auth-shell { width: 400px; padding-top: 61px; padding-bottom: 15px; }
  .panel-cap { top: -34px; height: 82px; }
  .crest-art { top: -5px; transform: translateX(-50%) scale(.9); }
  .panel-ribbon { top: 34px; }
  .panel-title { margin-bottom: 7px; }
  .panel-title p, .foot { display: none; }
  .realm-status { min-height: 35px; margin-bottom: 7px; padding-top: 5px; padding-bottom: 5px; }
  .tabs { height: 39px; margin-bottom: 8px; }
  .tab-marker { height: 29px; }
  .tab { padding-top: 7px; padding-bottom: 7px; }
  .field { margin-bottom: 6px; }
  input { height: 39px; line-height: 39px; }
  .registering .confirm-wrap { max-height: 62px; }
  .submit { height: 49px; }
  .submit::before, .submit::after { top: 14px; }
}
@media (max-width: 520px) {
  body { overflow: auto; }
  .stage { min-height: 740px; }
  .brand { width: 320px; margin-left: -160px; }
  .brand h1 { font-size: 51px; }
  .brand-rule { width: 50px; }
  .auth-shell { top: 60%; width: 380px; padding-left: 21px; padding-right: 21px; }
  .preferences { width: 302px; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .particles { display: none; }
}
