/* Isolated landing-page styles; game and account endpoints retain their own UI. */
* { box-sizing: border-box; }
html { min-height: 100%; background: #10171b; }
body { margin: 0; color: #eae2cf; font-family: Georgia, 'Times New Roman', serif; }
[hidden] { display: none !important; }
.world-art { position: fixed; inset: 0; background: linear-gradient(180deg, #04090e20, transparent 45%, #03080d88), url('/images/login/continents-war-v1.webp') center center / cover no-repeat; pointer-events: none; }
.start-content { position: relative; z-index: 1; min-height: 100svh; display: flex; flex-direction: column; align-items: center; padding: clamp(24px, 4vh, 52px) 20px 18px; }
.brand { text-align: center; margin-bottom: 24px; }
.brand h1 { margin: 0; }
.brand img { display: block; width: clamp(300px, 34vw, 540px); max-width: 100%; height: auto; filter: drop-shadow(0 8px 18px #000b); }
.brand p { margin: 8px 0 0; color: #dfcda9; font-size: 13px; letter-spacing: .13em; text-shadow: 0 2px 6px #000; }
.auth-panel { position: relative; width: 370px; max-width: 100%; padding: 18px 25px 8px; border: 3px solid #685340; border-radius: 7px; background: repeating-linear-gradient(92deg, #ffffff02 0 1px, transparent 1px 8px), linear-gradient(100deg, #1c1715f5, #101518f5 48%, #241b16f5); box-shadow: 0 0 0 2px #151619, 0 0 0 4px #97744c, 0 0 0 7px #11181ae0, 0 22px 55px #000a, inset 0 0 24px #0009; }
.auth-panel::before, .auth-panel::after { content: '◆'; position: absolute; color: #b99b68; font-size: 16px; top: 8px; text-shadow: 0 1px 3px #000; }
.auth-panel::before { left: 8px; } .auth-panel::after { right: 8px; }
.panel-ornament { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 36px; height: 30px; display: grid; place-items: center; background: #1b1d1c; border: 1px solid #a28555; rotate: 0deg; box-shadow: 0 2px 6px #000; color: #d5b477; font-size: 21px; border-radius: 50%; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #786044; gap: 4px; margin-bottom: 19px; }
.auth-tabs button { min-height: 44px; padding: 12px 2px; border: 0; border-bottom: 2px solid transparent; color: #a99e8e; background: transparent; font: 12px Georgia, serif; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; }
.auth-tabs button[aria-selected="true"] { color: #f1d5a0; border-bottom-color: #c99b55; background: linear-gradient(transparent, #a7782220); }
.auth-panel h2 { text-align: center; font-size: 18px; font-weight: normal; margin: 0 0 18px; color: #dbc9aa; }
.auth-panel label { display: block; font-family: system-ui, sans-serif; font-size: 12px; color: #c9c2b5; margin-bottom: 6px; }
.auth-panel input { width: 100%; height: 42px; margin-bottom: 14px; border: 1px solid #655c4e; border-radius: 2px; padding: 0 12px; background: linear-gradient(#070c0eea, #161b1deb); color: #fff1da; box-shadow: inset 0 2px 5px #0008; font: 16px system-ui, sans-serif; }
.auth-panel input:focus { outline: 2px solid #c8a56c; outline-offset: 2px; }
.auth-panel button[type="submit"] { width: 100%; min-height: 46px; padding: 10px; border: 1px solid #c79d63; border-radius: 3px; box-shadow: inset 0 0 0 2px #38271b, inset 0 1px 8px #e4aa5a30, 0 3px 7px #0008; background: linear-gradient(#824632, #55251f 48%, #341a18); color: #ffedcc; text-shadow: 0 2px 2px #000; font: 15px Georgia, serif; text-transform: uppercase; letter-spacing: .09em; cursor: pointer; }
.auth-panel button[type="submit"]:hover { background: linear-gradient(#995b3d, #693023); }
button:focus-visible, a:focus-visible { outline: 2px solid #edc887; outline-offset: 4px; }
.auth-panel button:disabled { opacity: .65; cursor: wait; }
.auth-panel input:disabled { opacity: .7; }
.recovery-link { display: block; text-align: center; color: #c9b99c; margin: 16px 0 9px; font-size: 12px; text-decoration: none; }
.recovery-link:hover { color: #ffdda4; text-decoration: underline; }
#login-message, #register-message { margin: 0 0 12px; font: 13px/1.5 system-ui, sans-serif; color: #f2cd9b; overflow-wrap: anywhere; }
#login-message:empty, #register-message:empty { display: none; }
#verification-resend-form { border-top: 1px solid #786044; padding-top: 14px; margin-top: 15px; }
#verification-resend-form button { font-size: 11px; letter-spacing: 0; }
.form-description { color: #b6aa95; font: 11px/1.5 system-ui, sans-serif; margin: -5px 0 15px; }
.panel-foot { color: #b3925d; text-align: center; font-size: 12px; margin-top: 5px; }
.world-names { position: fixed; inset: 0; pointer-events: none; }
.world-name { position: absolute; color: #e5d4b6; text-shadow: 0 2px 3px #080d10, 0 0 24px #000, 0 2px 12px #000; font-size: clamp(28px, 3vw, 48px); font-variant: small-caps; letter-spacing: .04em; }
.world-name span { display: block; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; text-align: center; margin-top: 5px; }
.midgard { top: 20%; left: 9%; }
.ostmark { top: 34%; right: 9%; }
.landing-slogan { position: fixed; left: clamp(24px, 5vw, 120px); top: 35%; width: calc(50vw - 240px - clamp(24px, 5vw, 120px)); max-width: 450px; padding: 64px 28px 40px; isolation: isolate; text-align: center; color: #f6d99b; pointer-events: none; text-shadow: 0 1px 1px #000, 0 3px 4px #000, 0 0 12px #000; }
.landing-slogan::before { content: ''; position: absolute; inset: 0; z-index: -1; border: solid transparent; border-width: 63px 30px 33px; border-image: url('/images/login/reference-dragon-frame-v1.webp') 340 230 220 230 / 63px 30px 33px stretch; filter: drop-shadow(0 5px 8px #000c); }
.landing-slogan::after { content: ''; position: absolute; inset: 45px 14px 19px; z-index: -2; border-radius: 5px; background: radial-gradient(ellipse at 50% 0, #27343de0, transparent 80%), linear-gradient(110deg, #07111bf2, #101b25ec 50%, #07111bf2); box-shadow: inset 0 0 28px #000a, 0 12px 25px #0008; }
.landing-slogan-lines { margin: 0; font: 600 clamp(14px, 1.3vw, 25px)/1.45 Georgia, 'Times New Roman', serif; font-variant: small-caps; letter-spacing: -.015em; }
.landing-slogan-lines span { display: block; }
.landing-slogan-lines span:last-child { margin-top: 3px; color: #e1e9ee; font-size: .94em; }
.landing-slogan-note { margin: 19px auto 0; padding-top: 12px; max-width: 330px; font: 10px/1.7 Georgia, 'Times New Roman', serif; letter-spacing: .025em; color: #ddc99f; }
.landing-slogan-note::before { content: '◇ ◆ ◇'; display: block; width: 90%; margin: -18px auto 5px; color: #b99456; font-size: 13px; line-height: 13px; background: linear-gradient(90deg, transparent 0, #b99456 12%, #b99456 34%, transparent 38%, transparent 62%, #b99456 66%, #b99456 88%, transparent 100%) center / 100% 1px no-repeat; }
.start-footer { margin-top: auto; padding-top: 28px; font-size: 10px; letter-spacing: .12em; color: #c8b898; text-shadow: 0 2px 4px #000; }
.start-footer span { padding: 0 8px; }
@media (min-width: 1600px) { .brand { margin-bottom: 32px; } .auth-panel { width: 390px; } }
@media (max-width: 1050px) { .midgard { left: 5%; } .ostmark { right: 5%; } }
@media (max-width: 1100px) { .landing-slogan { position: relative; width: min(450px, 100%); margin-top: 20px; left: auto; top: auto; } .landing-slogan-lines { font-size: clamp(16px, 3vw, 25px); } }
@media (min-width: 1101px) and (max-height: 560px) { .landing-slogan { position: absolute; top: 220px; } }
@media (max-width: 760px) {
  .start-content { padding: 25px 20px 20px; }
  .brand img { width: min(390px, 86vw); }
  .brand p { font-size: 10px; letter-spacing: .07em; }
  .brand { margin-bottom: 26px; }
  .world-names { display: none; }
  .world-art { background-position: 53% center; }
  .start-footer { padding-top: 25px; }
}
@media (max-width: 380px) { .auth-panel { padding-left: 17px; padding-right: 17px; } .auth-tabs button { font-size: 11px; } }

.start-content { z-index: auto; }

/* Separate reference artwork, with a nine-slice frame that grows with real forms. */
.brand { margin-bottom: 8px; }
.brand img { width: clamp(300px, 33vw, 460px); mix-blend-mode: normal; }
.brand p, .auth-panel h2, #login-form label {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.auth-panel { width: 440px; padding: 101px 58px 55px; border: 0; border-radius: 0; background: none; box-shadow: none; isolation: isolate; }
.auth-panel::before {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-style: solid; border-color: transparent; border-width: 103px 62px 59px;
  border-image-source: url('/images/login/reference-dragon-frame-v1.png');
  border-image-slice: 340 230 220 230; border-image-repeat: stretch;
  filter: drop-shadow(0 6px 10px #000b);
}
.auth-panel::after {
  content: ''; position: absolute; inset: 73px 29px 36px; z-index: -1; pointer-events: none;
  border-radius: 12px;
  background: repeating-linear-gradient(90deg, #0004 0 1px, transparent 1px 23px), repeating-linear-gradient(94deg, #ffffff02 0 1px, transparent 1px 7px), linear-gradient(100deg, #221b16fa, #100f0ff5 50%, #292018fa);
  box-shadow: 0 15px 35px #000b, inset 0 0 30px #000c;
}
.panel-ornament, .panel-foot { display: none; }
.auth-tabs { gap: 8px; border: 0; margin-bottom: 16px; }
.auth-tabs button {
  padding: 9px 2px; min-height: 39px; color: #d5d8d3;
  border: 1px solid #889092; border-radius: 2px;
  background: linear-gradient(#384347, #14232a 45%, #0c161b);
  box-shadow: inset 0 0 0 2px #0b1012, inset 0 0 0 3px #707779, 0 2px 5px #000b;
  font-size: 11px; letter-spacing: .025em; text-shadow: 0 2px 2px #000;
}
.auth-tabs button[aria-selected="true"] {
  color: #ffead0; border-color: #b79766;
  background: linear-gradient(#8c3225, #5b1110 48%, #300b0b);
  box-shadow: inset 0 0 0 2px #250b08, inset 0 0 0 3px #9b5741, 0 2px 5px #000b;
}
.auth-panel input { border-color: #797264; height: 39px; margin-bottom: 12px; background: linear-gradient(#030607f5, #0d1010f5); }
.auth-panel input::placeholder { color: #a39f95; opacity: 1; }
#login-form input { padding-left: 36px; background-color: #060a0b; background-repeat: no-repeat; background-position: 11px center; background-size: 14px 16px; }
#login-name { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18'%3E%3Cpath fill='%239a9a91' d='M8 0a4 4 0 0 0-4 4c0 2 1 4 2 5v2c-4 0-6 2-6 6h16c0-4-2-6-6-6V9c1-1 2-3 2-5a4 4 0 0 0-4-4Z'/%3E%3C/svg%3E"); }
#login-password { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18'%3E%3Cpath fill='%239a9a91' d='M3 7V5a5 5 0 0 1 10 0v2h2v11H1V7Zm2 0h6V5a3 3 0 0 0-6 0Zm2 3v5h2v-5Z'/%3E%3C/svg%3E"); }
.auth-panel button[type="submit"] { min-height: 42px; border: 1px solid #b89468; background: linear-gradient(#a73825, #790e0b 43%, #450907 80%, #65110a); box-shadow: inset 0 0 0 2px #260b08, inset 0 0 0 3px #b86a45, inset 0 5px 8px #ff9e3820, 0 3px 6px #000b; }
.auth-panel button[type="submit"]:hover { background: linear-gradient(#b4472d, #921810 48%, #62100c); }
.recovery-link { margin: 13px 0 0; font-size: 11px; }
@media (min-width: 1600px) { .auth-panel { width: 460px; } .brand { margin-bottom: 8px; } }
@media (max-width: 760px) {
  .start-content { padding: 18px 8px 20px; }
  .brand img { width: min(420px, 94vw); }
  .brand { margin-bottom: 4px; }
  .auth-panel { width: 420px; padding: 93px 47px 52px; }
  .auth-panel::before { border-width: 95px 53px 57px; }
  .auth-panel::after { inset: 66px 25px 34px; }
  .auth-tabs button { font-size: 10px; letter-spacing: 0; }
}
@media (max-width: 380px) {
  .auth-panel { padding: 84px 39px 46px; }
  .auth-panel::before { border-width: 86px 44px 50px; }
  .auth-panel::after { inset: 60px 23px 30px; }
  .auth-tabs { gap: 6px; }
  .auth-tabs button { font-size: 9px; }
}
