/* AJEDREZ 360 V653 — Diseño aprobado, estudio medieval (opción 6).
   SOLO presentación de #aj360RegistroV600. Mantener intactos los IDs, API,
   validaciones, idioma, sesión y eventos de los formularios. */
#aj360RegistroV600 {
 --aj653-madera:#24150d;--aj653-cafe:#302014;--aj653-cafe2:#482b17;
 --aj653-oro:#d5a65a;--aj653-oro-claro:#f0d293;--aj653-pergamino:#ebcda0;
 --aj653-tinta:#381f0d;--aj653-marfil:#fff0cd;
 background:#21150e url('assets/registro-v653-estudio.webp') center center/cover no-repeat fixed;
 color:var(--aj653-marfil);font-family:Georgia,'Times New Roman',serif;
 padding:clamp(5px,1.25vh,16px) max(8px,env(safe-area-inset-right)) clamp(5px,1.25vh,16px) max(8px,env(safe-area-inset-left));
}
#aj360RegistroV600::before {content:none!important;}
#aj360RegistroV600 .aj360-auth-card {
 isolation:isolate;
 position:relative;
 width:min(100%,1040px);
 max-height:calc(100dvh - clamp(10px,2.5vh,32px));
 overflow:auto;
 padding:clamp(12px,1.55vw,22px);
 border:2px solid #c8954b;
 border-radius:15px;
 background:linear-gradient(113deg,rgba(22,12,7,.97),rgba(48,27,15,.985) 48%,rgba(31,18,11,.975));
 box-shadow:0 20px 65px rgba(0,0,0,.75),inset 0 0 0 3px #392419,inset 0 0 0 4px #9b6b33;
 scrollbar-color:#987044 #261912;
 scrollbar-width:thin;
}
#aj360RegistroV600 .aj360-auth-top{
 position:relative;align-items:start;min-height:64px;
 padding:0 0 4px;
}
#aj360RegistroV600 .aj360-auth-top::before{
 content:"";position:absolute;right:21%;top:-15px;width:34%;height:95px;
 background:url('assets/registro-v653-castillo.webp') center/contain no-repeat;
 opacity:.78;pointer-events:none;z-index:-1;
 -webkit-mask-image:radial-gradient(ellipse at center,black 25%,transparent 77%);
 mask-image:radial-gradient(ellipse at center,black 25%,transparent 77%);
}
#aj360RegistroV600 .aj360-auth-kicker {font:700 clamp(9px,1vw,11px)/1.25 Georgia,serif;letter-spacing:.12em;color:#ead0a0;}
#aj360RegistroV600 .aj360-auth-brand {
 margin-top:5px;line-height:1.04;
 font:bold clamp(28px,3vw,37px) Georgia,serif;
 color:#f5d697;text-shadow:0 2px 3px #050301,0 0 14px #d2984240;
}
#aj360RegistroV600 .aj360-auth-trail {margin:0 0 12px;padding:0;font:500 12px Georgia,serif;color:#eddbb8;}
#aj360RegistroV600 .aj360-auth-trail strong {color:#fff2ce;}
#aj360RegistroV600 .aj360-auth-language {color:#f7e3bf;font:500 12px Georgia,serif;}
#aj360RegistroV600 select {
 color:#ffedc9;background:#24160f;border:1px solid #c69a5d;
 border-radius:9px;padding:7px 27px 7px 12px;
 font:600 12px Georgia,serif;box-shadow:inset 0 1px 4px #0006;
}
#aj360RegistroV600 .aj360-guest-entry{
 position:relative;gap:10px 14px;margin:0 0 13px;padding:12px 18px;
 border:1px solid #d39c49;border-radius:10px;
 background:linear-gradient(106deg,#2e190e,#472912 50%,#2a160c);
 box-shadow:inset 0 0 0 1px #9261315c,inset 0 1px 5px #0005,0 3px 12px #0005;
}
#aj360RegistroV600 .aj360-guest-entry-text{gap:7px;}
#aj360RegistroV600 .aj360-guest-entry-text strong {
 font:bold clamp(19px,2.2vw,27px)/1.15 Georgia,serif;
 color:#f7e1b8;letter-spacing:.01em;text-shadow:0 2px 4px #000b;
}
#aj360RegistroV600 .aj360-guest-entry-text .aj360-guest-warning {
 display:inline-flex;align-items:center;width:fit-content;max-width:100%;
 background:linear-gradient(180deg,#f9e8c1,#dfbc83);color:#3b2313;
 border:1px solid #a77a3c;border-left:4px solid #bb893c;border-radius:7px;
 min-height:34px;padding:6px 12px;
 font:700 clamp(11px,1.24vw,15px)/1.25 Georgia,serif;
 letter-spacing:0;text-shadow:none;box-shadow:0 2px 6px #0007;
}
#aj360RegistroV600 .aj360-guest-entry .aj360-guest {
 flex:0 0 auto;min-width:240px;min-height:48px;
 border:2px solid #dda95d;border-radius:10px;padding:8px 17px;
 color:#ffefcf;font:700 clamp(15px,1.5vw,19px) Georgia,serif;letter-spacing:0;
 background:linear-gradient(#aa6e3e,#82441f 51%,#673016);
 text-shadow:0 2px 3px #160902;
 box-shadow:inset 0 1px #fce2a55a,0 3px 0 #3a200d,0 6px 12px #0008;
}
#aj360RegistroV600 .aj360-guest-entry .aj360-guest:hover{background:linear-gradient(#b9814a,#98552c 52%,#74391b);}
#aj360RegistroV600 .aj360-guest-entry .aj360-guest:active{transform:translateY(2px);box-shadow:inset 0 2px 5px #0005;}
#aj360RegistroV600 #aj360PerfilGuardadoV600{
 border:1px solid #be8e49;border-radius:10px;background:linear-gradient(90deg,#29221d,#191510);
 color:#f5e6c4;padding:7px 11px;gap:10px;margin:0 0 12px;
 box-shadow:inset 0 1px #dabb7733,0 3px 8px #0004;
 font:600 12px Georgia,serif;
}
#aj360RegistroV600 #aj360PerfilGuardadoV600 .aj360-auth-btn{
 width:auto;min-height:31px;padding:5px 13px;
 border:1px solid #e4c18a;border-radius:8px;
 background:linear-gradient(#f9e8bc,#d0a365);color:#2b190e;
 box-shadow:0 2px 5px #0008;font:700 12px Georgia,serif;
}
#aj360RegistroV600 #aj360PerfilGuardadoV600 .aj360-auth-link {color:#f3d79b;}
#aj360RegistroV600 .aj360-auth-grid {gap:12px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;}
#aj360RegistroV600 .aj360-auth-section {
 position:relative;min-width:0;
 background:linear-gradient(#ffffff13,#ffffff00 18%),url('assets/registro-v653-pergamino.webp') center/420px repeat;
 color:#342014;
 border:2px solid #d1a263;
 border-radius:12px;padding:clamp(14px,2vw,22px) clamp(15px,1.9vw,21px);
 box-shadow:inset 0 0 0 3px #f4dfb3,inset 0 0 0 4px #ad7644,0 4px 13px #0008;
}
#aj360RegistroV600 .aj360-auth-section::before,
#aj360RegistroV600 .aj360-auth-section::after {
 content:'❧';position:absolute;color:#b18852;font-size:25px;line-height:1;top:9px;pointer-events:none;opacity:.75;
}
#aj360RegistroV600 .aj360-auth-section::before{left:9px;transform:rotate(130deg);}
#aj360RegistroV600 .aj360-auth-section::after{right:9px;transform:rotate(-45deg);}
#aj360RegistroV600 h2,
#aj360RegistroV600 .aj360-auth-section h2.aj360-create-title {
 color:#3b230f;text-shadow:none;
 font:bold clamp(20px,2.4vw,29px)/1.14 Georgia,serif;
 letter-spacing:-.02em;margin:0 0 17px;min-height:33px;
}
#aj360RegistroV600 .aj360-auth-field{
 font:700 13px/1.2 Georgia,serif;color:#352113;margin:0 0 12px;
}
#aj360RegistroV600 .aj360-auth-field>span:first-child {margin-bottom:5px;}
#aj360RegistroV600 .aj360-auth-field small {color:#603d24;font:500 12px Georgia,serif;}
#aj360RegistroV600 input:not([type=checkbox]){
 min-height:38px;padding:9px 12px;border-radius:8px;
 border:1px solid #a87439;background:linear-gradient(#2a190e,#472714);
 box-shadow:inset 0 2px 5px #0006,0 1px 0 #f7d8a6;
 color:#fff3d8;font:500 15px Georgia,serif;
}
#aj360RegistroV600 input::placeholder {color:#d4b99a;opacity:1;}
#aj360RegistroV600 input:focus-visible,
#aj360RegistroV600 select:focus-visible,
#aj360RegistroV600 button:focus-visible{outline:3px solid #f6c866;outline-offset:2px;}
#aj360RegistroV600 .aj360-eye{
 top:3px;right:3px;color:#f4d28c!important;
 font-size:18px;min-height:31px;min-width:37px;
}
#aj360RegistroV600 .aj360-auth-checkbox {font:500 13px Georgia,serif;color:#362215;margin:9px 0 13px;}
#aj360RegistroV600 .aj360-auth-checkbox input {height:18px;width:18px;accent-color:#80551e;}
#aj360RegistroV600 .aj360-auth-btn {
 min-height:45px;padding:9px 12px;
 background:linear-gradient(#fbe9c0,#e8c085 70%,#c59658);
 border:1px solid #a87537;color:#3c250f;
 font:700 clamp(14px,1.6vw,18px) Georgia,serif;
 border-radius:9px;box-shadow:inset 0 2px 0 #fff8,inset 0 0 0 2px #efd8a7,0 3px 7px #0005;
}
#aj360RegistroV600 .aj360-auth-btn:hover{background:linear-gradient(#fff1cc,#f5ce90 70%,#d4a15c);}
#aj360RegistroV600 .aj360-auth-status{
 font:600 12px Georgia,serif;color:#644320;min-height:0;margin:5px 0;
}
#aj360RegistroV600 .aj360-auth-status:empty{display:none;}
#aj360RegistroV600 .aj360-auth-status.error{color:#982d20}
#aj360RegistroV600 .aj360-auth-status.ok{color:#285a27}
#aj360RegistroV600 .aj360-auth-links{margin-top:11px;gap:6px 22px;}
#aj360RegistroV600 .aj360-auth-link {color:#3a2315;font:700 12px Georgia,serif;text-shadow:none;padding:5px 2px;}
#aj360RegistroV600 .aj360-auth-link:hover{color:#86511e;}
#aj360RegistroV600 .aj360-auth-note{font:500 11px/1.45 Georgia,serif;color:#39271a;text-align:center;margin:7px 0;}
#aj360RegistroV600 .aj360-login-remember-hint {
 color:#fae6c6;background:#38200f;border:1px solid #c18a46;
 border-radius:9px;padding:10px 12px;margin:10px 0 0;
 font:500 11px/1.42 Georgia,serif;
 box-shadow:inset 0 1px 4px #0007;
}
#aj360RegistroV600 .aj360-auth-footer{
 margin-top:12px;justify-content:flex-start;min-height:51px;
 border:1px solid #c58d43;border-radius:10px;
 background:linear-gradient(95deg,#20120b,#492a15 50%,#26160f);
 padding:9px 15px;box-shadow:inset 0 0 0 1px #7b4b25,0 2px 8px #0006;
}
#aj360RegistroV600 .aj360-auth-back {color:#f6ddb0;padding:5px 6px;font:700 16px Georgia,serif;text-align:left;}
#aj360RegistroV600 .aj360-auth-back:hover{color:#fff5d3;background:transparent;}
#aj360RegistroV600 #aj360AvisoServidorV600:empty {display:none;}
/* Recovery dialog: same approved browns, same original working form. */
#aj360RecuperarV600{background:#130b07df;font-family:Georgia,serif;}
#aj360RecuperarV600 .aj360-recover-card{background:linear-gradient(150deg,#4a2c19,#21140d);border-color:#d6a45b;color:#f7e5c3;}
#aj360RecuperarV600 input{background:#24170e;border:1px solid #c19557;color:#f9e4c0;}
#aj360RecuperarV600 h2{color:#f1d29a;}
/* Small screen: keep both columns only if legible; otherwise stack and scroll. */
@media(max-width:720px){
 #aj360RegistroV600{background-position:50% 50%;padding:6px;}
 #aj360RegistroV600 .aj360-auth-grid{grid-template-columns:minmax(0,1fr);}
 #aj360RegistroV600 .aj360-auth-card{padding:12px;max-height:calc(100dvh - 12px)}
 #aj360RegistroV600 .aj360-auth-top::before{right:5%;width:50%;opacity:.36;}
 #aj360RegistroV600 .aj360-auth-section{padding:16px;}
 #aj360RegistroV600 .aj360-guest-entry .aj360-guest{flex:1 1 200px;min-width:0;}
}
@media(max-height:520px) and (orientation:landscape){
 #aj360RegistroV600{padding:4px 7px;}
 #aj360RegistroV600 .aj360-auth-card{max-height:calc(100dvh - 8px);padding:10px 13px;}
 #aj360RegistroV600 .aj360-auth-top{min-height:50px;}
 #aj360RegistroV600 .aj360-auth-brand{font-size:25px;}
 #aj360RegistroV600 .aj360-auth-top::before{height:65px;top:-6px;}
 #aj360RegistroV600 .aj360-guest-entry{padding:9px 12px;}
 #aj360RegistroV600 .aj360-guest-entry-text strong{font-size:19px;}
 #aj360RegistroV600 .aj360-guest-entry-text .aj360-guest-warning{font-size:11px;}
 #aj360RegistroV600 .aj360-guest-entry .aj360-guest{min-height:40px;font-size:14px;}
 #aj360RegistroV600 h2,#aj360RegistroV600 .aj360-auth-section h2.aj360-create-title{font-size:22px;margin-bottom:12px;}
}
@media(prefers-reduced-motion:reduce){#aj360RegistroV600 *{scroll-behavior:auto!important;transition:none!important;}}
