/* Екрани акаунта: вхід і реєстрація, вибір персонажа, зміна пароля, перепідключення. Кольори, рамки й кнопки — зі style.css. */

/* ── Вхід ── */
#login.overlay { background: radial-gradient(ellipse 60% 70% at 50% 45%, rgba(8, 10, 20, .55), rgba(3, 4, 8, .92)); }
.card.logo { width: calc(460px * var(--k)); padding: 30px 38px 26px; }
.card.logo .sigil { position: relative; width: 54px; height: 54px; margin: 0 auto 6px; }
.card.logo .sigil::before { content: ''; position: absolute; inset: 7px; transform: rotate(45deg); border: 2px solid var(--gold); box-shadow: 0 0 0 1px #000, inset 0 0 0 1px #000, 0 0 18px rgba(230, 200, 119, .5); }
.card.logo .sigil::after { content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, var(--cyan) 45%, #1c6f90); box-shadow: 0 0 16px var(--cyan), 0 0 0 1px #000; }
.card.logo h1 { font-size: 4.6rem; line-height: 1; letter-spacing: .2em; margin-right: -.2em; background: linear-gradient(#fffbe6 8%, #f3dc92 38%, #b8943f 62%, #7a5f22 92%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 22px rgba(114, 228, 255, .35)); }
.tagline { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; color: var(--cyan); letter-spacing: .32em; text-transform: uppercase; font-size: .88rem; white-space: nowrap; }
.tagline::before, .tagline::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(230, 200, 119, .8)); }
.tagline::after { transform: scaleX(-1); }
.authTabs { display: flex; gap: 3px; margin-bottom: 12px; padding: 3px; border-radius: 6px; background: rgba(0, 0, 0, .4); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .8), inset 0 1px 4px rgba(0, 0, 0, .7); }
.authTabs .tab { flex: 1; justify-content: center; padding: .5em 1em; font: 600 1.15rem var(--title); letter-spacing: .08em; }
.card form { display: flex; flex-direction: column; gap: 9px; }
.card input, .authBox input, #createName { width: 100%; padding: .7em .9em; border: 1px solid #000; border-radius: 5px; outline: none; color: var(--text); font-size: 1.12rem; text-align: center;
  background: linear-gradient(#05060a, #0d0f16); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .85), 0 0 0 1px rgba(230, 200, 119, .32), 0 1px 0 1px rgba(255, 255, 255, .04); transition: box-shadow .12s; }
.card input::placeholder, .authBox input::placeholder, #createName::placeholder { color: #6f6c5c; }
.card input:focus, .authBox input:focus, #createName:focus { box-shadow: inset 0 2px 5px rgba(0, 0, 0, .85), 0 0 0 1px var(--cyan), 0 0 12px rgba(114, 228, 255, .3); }
.card form .btn { margin-top: 4px; }
#loginHint { margin-top: 4px; line-height: 1.5; }
#loginMsg { min-height: 1.5em; }

/* ── Вибір персонажа: список ліворуч, обраний герой — у 3D посередині, дії — праворуч ── */
.sideHead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 8px; margin-bottom: 2px; border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, rgba(230, 200, 119, .8), transparent) 1; }
.sideHead .count { font: 700 1.05rem var(--title); color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums; }
.acc { color: var(--dim); font-size: .92rem; margin-bottom: 4px; }
#accLogin { color: var(--gold-hi); }
#charList { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -4px; padding: 2px 4px; }
#charList .choice { padding: 8px 12px 8px 8px; }
#charList .choice .ico { width: calc(46px * var(--k)); height: calc(46px * var(--k)); }
#charList .choice .lv { margin-left: auto; padding: .1em .6em; border-radius: 4px; font: 700 .95rem var(--title); color: var(--gold-hi); white-space: nowrap; background: #0a0b11; box-shadow: inset 0 0 0 1px rgba(230, 200, 119, .5); }
#charList .choice.bad b { color: var(--bad); }
#charList .choice.bad .ico .ic { fill: url(#gRed); }
#charList .empty { color: var(--dim); padding: 12px 6px 8px; text-align: center; line-height: 1.5; }
#charList .free { display: flex; align-items: center; gap: 11px; padding: 8px 12px 8px 8px; border-radius: 6px; cursor: pointer; color: #6f6c5c; font-size: .95rem; border: 1px dashed rgba(230, 200, 119, .22); background: rgba(0, 0, 0, .18); transition: color .12s, border-color .12s; }
#charList .free i { position: relative; width: calc(46px * var(--k)); height: calc(46px * var(--k)); flex: none; border-radius: 50%; border: 1px dashed rgba(230, 200, 119, .3); }
#charList .free i::before, #charList .free i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 34%; height: 2px; background: currentColor; transform: translate(-50%, -50%); }
#charList .free i::after { transform: translate(-50%, -50%) rotate(90deg); }
#charList .free:hover { color: var(--gold); border-color: rgba(230, 200, 119, .6); }
#charInfo { flex: 1; color: #d8d3bf; text-align: center; padding-top: 6px; }
#charInfo .crestBig { width: calc(84px * var(--k)); height: calc(84px * var(--k)); margin: 0 auto 10px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--metal); box-shadow: 0 0 0 1px #000, 0 6px 18px rgba(0, 0, 0, .7), 0 0 26px rgba(114, 228, 255, .18); position: relative; }
#charInfo .crestBig::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #33415f, #151a2a 60%, #090b12); box-shadow: inset 0 0 0 1px #000, inset 0 0 16px rgba(0, 0, 0, .8); }
#charInfo .crestBig .ic { position: relative; width: 56%; height: 56%; fill: url(#gIvory); filter: drop-shadow(0 2px 2px #000); }
#charInfo h3 { display: block; color: #fff; font-size: 2rem; margin: 0 0 2px; letter-spacing: .04em; text-transform: none; text-shadow: 0 2px 0 #000; }
#charInfo h3::after { display: none; }
#charInfo .cls { color: var(--cyan); letter-spacing: .06em; }
#charInfo .lvl { margin: 8px 0 4px; color: var(--gold); font: 600 1.15rem var(--title); letter-spacing: .1em; text-transform: uppercase; }
#charInfo .lvl span { font-size: 1.9rem; color: var(--gold-hi); margin-right: .15em; }
#charsMsg { text-align: center; margin: 2px 0; }
#charsMsg.note, #passMsg.note { color: var(--good); font-size: 1rem; }
#charPlay { width: 100%; }
.sideBtns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
#accLogout { margin-top: 2px; }

.authBox { display: flex; flex-direction: column; gap: 7px; padding: 10px 11px; border-radius: 6px; background: rgba(0, 0, 0, .32); box-shadow: inset 0 0 0 1px rgba(230, 200, 119, .35), inset 0 2px 8px rgba(0, 0, 0, .6); }
.authBox input { font-size: 1.02rem; padding: .55em .8em; }
.authBox .msg { min-height: 1.3em; margin: 0; font-size: .92rem; text-align: center; }
.authRow { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.authBox .authRow .btn { flex: 1; }
#charDelBox { box-shadow: inset 0 0 0 1px rgba(255, 110, 90, .55), inset 0 2px 8px rgba(0, 0, 0, .6); }

/* ── Створення персонажа: ім'я вводиться тут же, над расами ── */
#createName { margin: 2px 0 2px; font: 600 1.3rem var(--title); letter-spacing: .04em; }
#createMsg { color: var(--bad); }
#createBtn { width: 100%; }

/* ── Зв'язок втрачено / підтвердження виходу ── */
#reconnect, #leaveAsk { z-index: 70; }
#reconnectTry { min-height: 1.4em; margin-bottom: 12px; }
