@import url("/css/routes/login.css");
@layer route {
.route-register .auth-page{background:transparent;color:var(--ui-text);font-family:var(--ui-font)}
.auth-head .auth-head-action{justify-self:end;display:flex;align-items:center;height:100%;padding:0 9px;border-left:1px solid var(--ui-line);color:var(--ui-accent);font-size:var(--ui-font-base);font-weight:800;text-decoration:none}
.auth-head .auth-head-action:is(:hover,:focus-visible){background:var(--ui-surface-active)}
.auth-intro{padding:22px 12px 18px;border-bottom:1px solid var(--ui-line);text-align:center}.auth-intro h1{margin:0;color:var(--ui-strong);font-size:var(--ui-font-display);letter-spacing:.04em;text-transform:uppercase}.auth-intro p{max-width:520px;margin:7px auto 0;color:var(--ui-muted);font-size:var(--ui-font-secondary)}
.auth-notice{margin:0;padding:10px 12px;border:0;border-bottom:1px solid var(--ui-line);border-left:3px solid var(--ui-info);background:var(--ui-surface);font-size:var(--ui-font-base)}.auth-notice.error{border-left-color:var(--ui-danger);color:var(--ui-danger)}
.auth-section{margin:0;border:0;border-bottom:1px solid var(--ui-line)}.auth-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;padding:8px 10px;border-bottom:1px solid var(--ui-line);background:var(--ui-surface)}.auth-section-head b{color:var(--ui-strong);font-size:var(--ui-font-section)}.auth-section-head span{color:var(--ui-muted);font-size:var(--ui-font-base)}
.register-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;padding:0}.auth-field{display:grid;align-content:start;gap:5px;min-width:0;padding:10px;border-bottom:1px solid var(--ui-line)}.auth-field:nth-of-type(odd):not(.register-email){border-right:1px solid var(--ui-line)}.auth-field>span:first-child{color:var(--ui-text);font-size:var(--ui-font-base);font-weight:700}.auth-field input{width:100%;min-height:40px;font-size:var(--ui-font-base)}.auth-field small{color:var(--ui-muted);font-size:var(--ui-font-secondary)}.register-email{grid-column:1/-1}.auth-password{position:relative;display:block}.auth-password input{padding-right:42px}.auth-eye{position:absolute;right:3px;top:3px;display:grid;place-items:center;width:34px;height:34px;min-height:34px;padding:0;border:0;border-left:1px solid var(--ui-line);border-radius:0;background:transparent;color:var(--ui-muted)}.auth-eye:is(:hover,:focus-visible){background:var(--ui-surface-active);color:var(--ui-accent)}
.auth-check{grid-column:1/-1;display:flex;align-items:flex-start;gap:9px;min-height:46px;padding:10px;border-bottom:1px solid var(--ui-line);font-size:var(--ui-font-base);line-height:1.45;cursor:pointer}.auth-check input{flex:0 0 auto;width:16px;height:16px;margin:2px 0 0;accent-color:var(--ui-accent)}.register-terms a{text-decoration:underline;text-decoration-color:var(--ui-accent-2);text-underline-offset:2px}
.auth-submit{grid-column:1/-1;justify-self:stretch;margin:10px;min-height:40px;color:var(--ui-accent)}
.auth-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-bottom:1px solid var(--ui-line)}.auth-links.single{grid-template-columns:1fr}.auth-links a{display:flex;align-items:center;justify-content:center;min-height:40px;padding:7px;border-right:1px solid var(--ui-line);font-size:var(--ui-font-base);font-weight:700;text-align:center}.auth-links a:last-child{border-right:0}.auth-links a:is(:hover,:focus-visible){background:var(--ui-surface-active)}
@media(max-width:560px){.register-form{grid-template-columns:1fr}.auth-field,.auth-field:nth-of-type(odd):not(.register-email){grid-column:auto;border-right:0}.register-email,.auth-check,.auth-submit{grid-column:1}.auth-intro{padding:18px 10px 15px}.auth-intro h1{font-size:var(--ui-font-display)}.auth-section-head span{display:none}}
@media(max-width:350px){.auth-head .auth-head-action{font-size:var(--ui-font-base);padding-inline:6px}.auth-check{font-size:var(--ui-font-base)}}
/* V784: first-login story, using the active theme's typography and palette. */
.route-prologue .prologue-page{width:min(100%,700px);max-width:700px;margin-inline:auto;min-width:0;color:var(--ui-text);font-family:var(--ui-font)}
.route-prologue .prologue-head{padding:15px 14px 13px;border-bottom:1px solid var(--ui-line);text-align:center;background:var(--ui-surface)}
.route-prologue .prologue-brand{font-weight:800;font-size:var(--ui-font-section);letter-spacing:.07em;color:var(--ui-strong)}
.route-prologue .prologue-caption{margin-top:5px;color:var(--ui-muted);font-size:var(--ui-font-secondary)}
.route-prologue .prologue-skip{display:flex;justify-content:flex-end;padding:9px 12px;border-bottom:1px solid var(--ui-line)}
.route-prologue .prologue-skip-button{min-height:38px;padding:7px 12px;border:1px solid var(--ui-line);background:var(--ui-surface);border-radius:0;color:var(--ui-muted);font:inherit;font-size:var(--ui-font-base);cursor:pointer}
.route-prologue .prologue-skip-button:is(:hover,:focus-visible){background:var(--ui-surface-active);color:var(--ui-strong)}
.route-prologue .prologue-story{max-width:100%;min-width:0;padding:12px clamp(12px,3vw,24px) 20px;overflow-wrap:anywhere}
.route-prologue .prologue-story h1{text-align:center;margin:12px 0 22px;color:var(--ui-strong);font-size:var(--ui-font-section);line-height:1.4}
.route-prologue .prologue-story p{margin:0 0 15px;font-size:var(--ui-font-base);line-height:1.75;hyphens:auto}
.route-prologue .prologue-story strong{color:var(--ui-strong)}
.route-prologue .prologue-story hr{height:1px;background:var(--ui-line);border:0;margin:28px 0}
.route-prologue .prologue-story .prologue-date{margin-top:15px}
.route-prologue .prologue-entry{text-align:center;padding:14px 12px 20px;border-top:1px solid var(--ui-line);background:var(--ui-surface)}
.route-prologue .prologue-entry-button{width:100%;max-width:350px;min-height:44px;padding:10px 14px;background:var(--ui-surface-active);border:1px solid var(--ui-accent);border-radius:0;color:var(--ui-accent);font:inherit;font-weight:800;font-size:var(--ui-font-section);cursor:pointer}
.route-prologue .prologue-entry-button:is(:hover,:focus-visible){background:var(--ui-surface);color:var(--ui-strong)}
.route-prologue .prologue-entry p{margin:10px 0 0;font-size:var(--ui-font-secondary);line-height:1.45;color:var(--ui-muted)}
.route-prologue .prologue-error{padding:10px 12px;border-bottom:1px solid var(--ui-danger);color:var(--ui-danger)}
@media(max-width:380px){.route-prologue .prologue-story p{line-height:1.65}.route-prologue .prologue-head{padding-inline:10px}}
}

/* V823 register uses shared login.css; existing prologue rules stay unchanged. */

/* V824: explicit registration form fallback: no dependence on imported login/index CSS. */
/* V823: common INDEX-style authentication geometry. */
/* Только HTML-макеты. Основные цвета, темы, размеры и обложка берутся из
   действующих css/game-ui.css и css/routes/index.css (из V820).
   При интеграции использовать существующие файлы и не копировать тему. */
body.auth-index-page{margin:0;overflow-x:hidden;background:var(--ui-bg);font-family:var(--ui-font);}
body.auth-index-page .perimeter-index{margin-top:var(--ui-edge);overflow:visible;}
body.auth-index-page .auth-hero{min-height:210px;height:210px;}
body.auth-index-page .auth-hero .perimeter-index-cover{object-position:center 53%;}
body.auth-index-page .auth-hero::before{background:linear-gradient(180deg,rgba(0,0,0,.34),rgba(0,0,0,.15) 35%,rgba(0,0,0,.73) 100%);}
body.auth-index-page .auth-hero .perimeter-index-title{top:auto;bottom:45px;left:12px;right:12px;display:block;font-size:clamp(26px,5.2vw,39px);letter-spacing:.06em;text-shadow:0 2px 1px #111,0 5px 9px #000,0 0 18px #000;}
body.auth-index-page .auth-hero .auth-tag{position:absolute;z-index:5;left:12px;right:12px;bottom:23px;font-size:10px;letter-spacing:.18em;line-height:1.25;color:#e9e4d6;text-align:center;text-shadow:0 2px 5px #000,0 0 12px #000;text-transform:uppercase;font-weight:700;}
body.auth-index-page .auth-index-body{background:var(--ui-bg);border:1px solid var(--ui-line);border-top:0;min-width:0;}
body.auth-index-page .auth-heading{margin:0;padding:12px 14px 10px;border-bottom:1px solid var(--ui-line-strong);font:800 14px/1.2 var(--ui-font);letter-spacing:.04em;text-transform:uppercase;color:var(--ui-strong);background:linear-gradient(180deg,var(--ui-surface),var(--ui-bg));}
body.auth-index-page .auth-heading::before{content:"";display:inline-block;width:3px;height:12px;margin-right:9px;background:var(--ui-accent);vertical-align:-1px;box-shadow:0 0 6px color-mix(in srgb,var(--ui-accent),transparent 65%);}
body.auth-index-page .auth-lead{padding:10px 14px;color:var(--ui-text);font-size:13px;line-height:1.5;border-bottom:1px solid var(--ui-line);}
body.auth-index-page .auth-form{padding:0;margin:0;}
body.auth-index-page .auth-fields{display:grid;grid-template-columns:1fr;}
body.auth-index-page .auth-field{display:flex;flex-direction:column;gap:7px;min-width:0;padding:12px 14px;border-bottom:1px solid var(--ui-line);}
body.auth-index-page .auth-field-label{font-weight:700;color:var(--ui-strong);font-size:12px;}
body.auth-index-page .auth-field input{min-width:0;width:100%;height:43px;padding:0 12px;border:1px solid var(--ui-line-strong);border-radius:0;background:var(--ui-bg-2);color:var(--ui-strong);font:13px/1.2 var(--ui-font);outline:0;}
body.auth-index-page .auth-field input::placeholder{color:var(--ui-muted);opacity:.9;}
body.auth-index-page .auth-field input:focus{border-color:var(--ui-accent);box-shadow:0 0 0 1px color-mix(in srgb,var(--ui-accent),transparent 72%);}
body.auth-index-page .auth-hint{font-size:11px;line-height:1.35;color:var(--ui-muted);}
body.auth-index-page .auth-pass{position:relative;display:flex;min-width:0;}
body.auth-index-page .auth-pass input{padding-right:51px;}
body.auth-index-page .auth-eye{position:absolute;right:1px;top:1px;bottom:1px;min-width:45px;border:0;border-left:1px solid var(--ui-line-strong);border-radius:0;background:var(--ui-bg-2);color:var(--ui-accent);font-weight:800;font-size:12px;cursor:pointer;}
body.auth-index-page .auth-eye:focus-visible{outline:1px solid var(--ui-accent);outline-offset:-2px;}
body.auth-index-page .auth-check{display:flex;align-items:flex-start;gap:10px;margin:0;padding:12px 14px;border-bottom:1px solid var(--ui-line);font-size:12px;line-height:1.5;color:var(--ui-text);}
body.auth-index-page .auth-check input{flex:0 0 17px;width:17px;height:17px;margin:1px 0 0;accent-color:var(--ui-accent);}
body.auth-index-page .auth-check a{color:var(--ui-accent);text-decoration:underline;text-underline-offset:2px;}
body.auth-index-page .auth-actions{padding:11px;display:grid;gap:8px;}
body.auth-index-page .auth-primary{display:flex;align-items:center;justify-content:center;width:100%;min-height:43px;padding:9px 12px;border:1px solid var(--ui-accent);border-radius:0;background:linear-gradient(180deg,#242518,#0d100b);color:#e8e3d1;font:800 13px/1.2 var(--ui-font);letter-spacing:.045em;text-transform:uppercase;cursor:pointer;}
body.auth-index-page .auth-primary:hover{filter:brightness(1.17);}
body.auth-index-page .auth-footer-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid var(--ui-line);}
body.auth-index-page .auth-footer-links a{display:grid;place-items:center;min-height:41px;padding:7px 9px;text-align:center;color:var(--ui-accent);font-size:12px;font-weight:700;border-right:1px solid var(--ui-line);overflow-wrap:anywhere;}
body.auth-index-page .auth-footer-links a:last-child{border-right:0;}
body.auth-index-page .auth-footer-links a:hover{background:var(--ui-surface-active);}
body.auth-index-page .auth-note{border-left:3px solid var(--ui-warning);background:var(--ui-surface);padding:9px 12px;color:var(--ui-strong);font-size:12px;line-height:1.45;}
body.auth-index-page .auth-divider-title{padding:10px 14px;background:var(--ui-surface);border-bottom:1px solid var(--ui-line);font-size:11px;font-weight:800;color:var(--ui-strong);letter-spacing:.08em;text-transform:uppercase;}
body.auth-index-page .auth-legal-notice{margin:0;padding:10px 14px;color:var(--ui-muted);font-size:11px;line-height:1.45;}
@media(min-width:570px){body.auth-index-page .auth-fields.register-fields{grid-template-columns:repeat(2,minmax(0,1fr));}body.auth-index-page .register-fields .auth-field:nth-child(odd){border-right:1px solid var(--ui-line);}}
@media(max-width:420px){body.auth-index-page .auth-hero{height:170px;min-height:170px;}body.auth-index-page .auth-hero .perimeter-index-title{bottom:44px;font-size:clamp(24px,7.2vw,30px);}body.auth-index-page .auth-heading{padding-inline:11px;}body.auth-index-page .auth-lead,body.auth-index-page .auth-field,body.auth-index-page .auth-check{padding-inline:11px;}body.auth-index-page .auth-footer-links a{font-size:11px;}}
@media(max-width:325px){body.auth-index-page .auth-footer-links{grid-template-columns:1fr;}body.auth-index-page .auth-footer-links a{border-right:0;border-bottom:1px solid var(--ui-line);}body.auth-index-page .auth-footer-links a:last-child{border-bottom:0;}}
/* Integration V823: share INDEX styles, preserve existing footer and all themes. */
body.auth-index-page{overflow-x:hidden;background:var(--ui-bg);font-family:var(--ui-font)}
body.auth-index-page main.perimeter-index{width:min(calc(100% - (var(--ui-edge) * 2)),700px);max-width:700px;margin:var(--ui-edge) auto 0;box-sizing:border-box;min-width:0;}
body.auth-index-page .auth-index-body{background:var(--ui-bg);border:1px solid var(--ui-line);border-top:0;min-width:0;}
body.auth-index-page .auth-form{display:block;grid-template-columns:none;}
body.auth-index-page .auth-fields{display:grid;grid-template-columns:1fr;}
body.auth-index-page .auth-field{display:flex;flex-direction:column;gap:7px;min-width:0;padding:12px 14px;border-bottom:1px solid var(--ui-line);border-right:0;}
body.auth-index-page .auth-field>span:first-child{color:var(--ui-strong);font-size:12px;font-weight:700}
body.auth-index-page .auth-pass{position:relative;display:flex;width:100%;min-width:0}
body.auth-index-page .auth-pass input{padding-right:100px}
body.auth-index-page button.auth-eye::before{content:"ПОКАЗАТЬ";}
body.auth-index-page button.auth-eye[aria-pressed="true"]::before{content:"СКРЫТЬ";}
body.auth-index-page button.auth-eye{position:absolute;right:1px;top:1px;bottom:1px;width:92px;height:auto;min-height:0;max-height:none;padding:0 7px;border:0;border-left:1px solid var(--ui-line-strong);font:800 11px/1.3 var(--ui-font);color:var(--ui-accent);background:var(--ui-bg-2);}
body.auth-index-page .auth-check{display:flex;align-items:flex-start;min-height:0;margin:0;padding:12px 14px;gap:10px}
body.auth-index-page .auth-check input{flex:0 0 17px;width:17px;height:17px;margin:1px 0 0;accent-color:var(--ui-accent)}
body.auth-index-page .auth-primary{width:100%;margin:0;border:1px solid var(--ui-accent);background:linear-gradient(180deg,#242518,#0d100b);color:#e8e3d1;min-height:43px;}
body.auth-index-page .auth-footer-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
body.auth-index-page .auth-footer-links a{display:grid;place-items:center;min-height:41px;padding:7px 9px;text-align:center;overflow-wrap:anywhere;}
body.auth-index-page .auth-notice{margin:0;border:0;border-bottom:1px solid var(--ui-line);border-left:3px solid var(--ui-info);background:var(--ui-surface);padding:10px 14px;color:var(--ui-text);font-size:12px;line-height:1.5}
body.auth-index-page .auth-notice.error{border-left-color:var(--ui-danger);color:var(--ui-danger)}
body.auth-index-page .auth-notice.success{border-left-color:var(--ui-good);color:var(--ui-strong)}
body.auth-index-page .auth-index-body .auth-divider-title{margin:0;}
body.auth-index-page footer.perimeter-global-footer{width:min(calc(100% - (var(--ui-edge) * 2)),700px);max-width:700px;margin:0 auto var(--ui-edge);box-sizing:border-box;}
@media(min-width:570px){body.auth-index-page .auth-fields.register-fields{grid-template-columns:repeat(2,minmax(0,1fr))}body.auth-index-page .register-fields .auth-field:nth-child(odd){border-right:1px solid var(--ui-line)}}
@media(max-width:569px){body.auth-index-page .auth-fields.register-fields{grid-template-columns:1fr}body.auth-index-page .register-fields .auth-field:nth-child(odd){border-right:0}}
@media(max-width:420px){body.auth-index-page .auth-field,body.auth-index-page .auth-check{padding-inline:11px}body.auth-index-page .auth-pass input{padding-right:86px}body.auth-index-page button.auth-eye{width:78px;font-size:10px}}



/* V824 — self-contained auth page geometry. The INDEX artwork and the auth form
   are deliberately positioned without depending on @import of index.css.
   Colors and typography come from the already-loaded global game-ui.css. */
body.auth-index-page{overflow-x:hidden;background:var(--ui-bg);color:var(--ui-text);font-family:var(--ui-font)}
body.auth-index-page > main.auth-page-shell.project-root{
  display:block;position:relative;box-sizing:border-box;min-width:0;
  width:min(calc(100% - (var(--ui-edge) * 2)),700px);max-width:700px;
  height:auto;min-height:0;margin:var(--ui-edge) auto 0;padding:0;
  background:var(--ui-bg);border:0;overflow:visible;isolation:isolate;
}
body.auth-index-page .auth-page-shell .auth-hero{
  box-sizing:border-box;position:relative!important;display:block!important;
  width:100%;height:215px!important;min-height:215px!important;max-height:215px!important;
  margin:0;padding:0;overflow:hidden!important;isolation:isolate;
  background:#14191a;float:none!important;clear:both;
}
body.auth-index-page .auth-page-shell .auth-hero > img.perimeter-index-cover{
  box-sizing:border-box;position:absolute!important;display:block!important;
  top:0!important;right:0!important;bottom:auto!important;left:0!important;
  width:100%!important;height:100%!important;min-width:0;max-width:none!important;
  min-height:0!important;max-height:100%!important;margin:0!important;padding:0!important;
  object-fit:cover!important;object-position:center 54%!important;
  z-index:0!important;transform:none!important;float:none!important;
}
body.auth-index-page .auth-page-shell .auth-hero::before{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.18) 35%,rgba(0,0,0,.85) 100%);
}
body.auth-index-page .auth-page-shell .auth-hero::after{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  box-shadow:inset 0 0 30px rgba(0,0,0,.32);
}
body.auth-index-page .auth-page-shell .auth-hero > h1.perimeter-index-title{
  position:absolute!important;display:block!important;box-sizing:border-box;
  top:auto!important;left:8px!important;right:8px!important;bottom:44px!important;
  width:auto!important;max-width:calc(100% - 16px);min-height:0;
  margin:0!important;padding:0!important;z-index:3!important;
  font-family:var(--ui-font)!important;font-size:clamp(24px,5.7vw,38px)!important;
  font-weight:900!important;line-height:1.1!important;letter-spacing:.045em;
  text-align:center!important;text-transform:uppercase;white-space:normal!important;
  color:#eee8d7!important;text-shadow:0 2px 1px #111,0 5px 9px #000,0 0 18px #000;
  float:none!important;transform:none!important;
}
body.auth-index-page .auth-page-shell .auth-hero > p.auth-tag{
  position:absolute!important;display:block!important;z-index:3!important;
  top:auto!important;bottom:20px!important;left:8px!important;right:8px!important;
  width:auto;max-width:none;margin:0!important;padding:0!important;
  color:#e3dcc6!important;text-align:center!important;font-family:var(--ui-font)!important;
  font-size:10px!important;line-height:1.3!important;font-weight:700;
  text-transform:uppercase;letter-spacing:.15em;text-shadow:0 2px 5px #000,0 0 9px #000;
}
body.auth-index-page .auth-page-shell > .auth-index-body{
  box-sizing:border-box;position:relative;display:block;float:none;clear:both;
  width:100%;max-width:100%;min-width:0;height:auto;min-height:0;
  margin:0!important;padding:0!important;overflow:visible;
  background:var(--ui-bg)!important;color:var(--ui-text);
  border:1px solid var(--ui-line);border-top:0;
}
body.auth-index-page .auth-page-shell .auth-heading{margin:0!important;font-family:var(--ui-font)}
body.auth-index-page .auth-page-shell .auth-lead{margin:0!important;color:var(--ui-text);}
body.auth-index-page .auth-page-shell .auth-form{margin:0;max-width:100%;min-width:0;}
body.auth-index-page .auth-page-shell .auth-fields{min-width:0;}
body.auth-index-page .auth-page-shell .auth-field,
body.auth-index-page .auth-page-shell .auth-pass{min-width:0;max-width:100%;}
body.auth-index-page .auth-page-shell .auth-field input{box-sizing:border-box;max-width:100%;min-width:0;}
body.auth-index-page .auth-page-shell .auth-footer-links{margin:0;}
@media(max-width:520px){
 body.auth-index-page .auth-page-shell .auth-hero{height:176px!important;min-height:176px!important;max-height:176px!important;}
 body.auth-index-page .auth-page-shell .auth-hero > h1.perimeter-index-title{font-size:clamp(22px,7vw,30px)!important;bottom:42px!important;}
 body.auth-index-page .auth-page-shell .auth-hero > p.auth-tag{font-size:9px!important;bottom:18px!important;}
}
