/* account.css - /login and /register (login.html, register.html + account.js); builds on topup.css (site header, colours, fonts, footer, toast). */
.tw-acc{padding: 56px 16px 70px; min-height: calc(100vh - 68px - 96px);
  background:
    radial-gradient(700px 420px at 50% 120px, rgba(255, 210, 31, .10), transparent 70%),
    radial-gradient(900px 600px at 10% 30%, rgba(84, 60, 220, .22), transparent 70%),
    radial-gradient(800px 520px at 90% 80%, rgba(0, 170, 255, .12), transparent 70%),
    linear-gradient(180deg, #070b1e 0, var(--navy-1) 50%, var(--navy-0) 100%);}
.tw-acc__card{position: relative; width: min(100%, 860px); margin: 0 auto; padding: 34px 40px 36px; border-radius: 30px;
  background: linear-gradient(180deg, #24399e 0%, #182b7c 45%, #0f1d58 100%);
  box-shadow: 0 0 0 3px rgba(255, 210, 31, .85), 0 0 0 9px rgba(255, 210, 31, .12), 0 0 60px rgba(255, 190, 0, .18), 0 26px 60px rgba(0, 0, 0, .5);}
.tw-acc__card--narrow{width: min(100%, 520px);}
.tw-acc__badge{position: absolute; top: -34px; right: 30px; width: 96px; height: 96px; border-radius: 24px; object-fit: cover;
  box-shadow: 0 0 0 4px var(--gold), 0 10px 24px rgba(0, 0, 0, .45);}
.tw-acc__h1{display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin: 0 120px 2px 0; font-family: var(--font-h); font-size: 40px; font-weight: 700; line-height: 1.25; color: #fff;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .3);}
.tw-acc__h1 small{font-size: 18px; font-weight: 600; letter-spacing: .12em; color: var(--gold);}
.tw-acc__lead{margin: 0 120px 22px 0; color: var(--mute); font-size: 16px;}
.tw-acc__form{display: grid; gap: 16px;}
.tw-acc__form--grid{grid-template-columns: 1fr 1fr; gap: 18px 26px;}
.tw-acc__field{display: flex; flex-direction: column; gap: 6px; min-width: 0;}
.tw-acc__field > span:first-child{font-family: var(--font-h); font-size: 16.5px; font-weight: 500; color: #fff;}
.tw-acc__field em{font-style: normal; font-size: 13px; font-weight: 400; color: var(--mute);}
.tw-acc__field input{width: 100%; height: 52px; padding: 0 16px; border: 0; border-radius: 14px; background: rgba(4, 8, 28, .7); color: #fff; font-size: 17px;
  box-shadow: inset 0 0 0 1.5px rgba(160, 180, 255, .3); outline: none; transition: box-shadow .15s;}
.tw-acc__field input:focus{box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 4px rgba(255, 210, 31, .15);}
.tw-acc__field.is-bad input{box-shadow: inset 0 0 0 2px var(--red);}
.tw-acc__field.is-ok input{box-shadow: inset 0 0 0 2px var(--green);}
.tw-acc__hint{font-size: 13px; line-height: 1.5; color: var(--mute);}
.tw-acc__field.is-bad .tw-acc__hint{color: #ffb3c0;}
.tw-acc__field.is-ok .tw-acc__hint{color: #7df0ac;}
.tw-acc__pw{position: relative; display: block;}
.tw-acc__pw input{padding-right: 52px;}
.tw-acc__eye{position: absolute; top: 50%; right: 6px; width: 42px; height: 42px; transform: translateY(-50%); border: 0; border-radius: 10px; background: transparent; color: var(--mute); cursor: pointer;}
.tw-acc__eye svg{width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;}
.tw-acc__eye:hover, .tw-acc__eye[aria-pressed="true"]{color: var(--gold);}
.tw-acc__note{align-self: start; padding: 14px 16px; border-radius: 14px; background: rgba(255, 210, 31, .08); box-shadow: inset 0 0 0 1px rgba(255, 210, 31, .3); font-size: 14px; color: var(--mute);}
.tw-acc__note strong{display: block; font-family: var(--font-h); font-weight: 500; color: var(--gold); font-size: 15.5px;}
.tw-acc__note p{margin: 2px 0 0;}
.tw-acc__terms{grid-column: 1 / -1;}
.tw-acc__check{display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 16px; color: #fff;}
.tw-acc__check input{flex: 0 0 auto; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--gold); cursor: pointer;}
.tw-acc__check.is-bad span{color: #ffb3c0;}
.tw-acc__rules{margin: 8px 0 0 36px; font-size: 14px; color: var(--mute);}
.tw-acc__rules summary{cursor: pointer; color: var(--gold); width: max-content; max-width: 100%;}
.tw-acc__rules ul{margin: 8px 0 0; padding-left: 20px;}
.tw-acc__rules li{margin: 3px 0;}
.tw-acc__err{grid-column: 1 / -1; margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(255, 61, 90, .16); color: #ffc2cc; font-size: 15px; box-shadow: inset 0 0 0 1px rgba(255, 61, 90, .35);}
.tw-acc__submit{grid-column: 1 / -1; justify-self: center; width: min(100%, 360px); min-height: 58px; margin-top: 4px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, #ffe45c 0%, var(--gold) 45%, var(--gold-2) 100%); color: var(--gold-ink); font-family: var(--font-h); font-size: 23px; font-weight: 700;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .5), 0 5px 0 #b86a00, 0 10px 24px rgba(255, 170, 0, .25); transition: transform .1s, filter .15s, box-shadow .1s;}
.tw-acc__submit:hover{filter: brightness(1.06);}
.tw-acc__submit:active{transform: translateY(4px); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .5), 0 1px 0 #b86a00;}
.tw-acc__submit:disabled{opacity: .65; cursor: progress; transform: none;}
.tw-acc__submit:focus-visible, .tw-acc__eye:focus-visible, .tw-acc__state .tw-btn:focus-visible, .tw-acc__switch a:focus-visible{outline: 3px solid #fff; outline-offset: 3px;}
.tw-acc__switch{margin: 26px auto 0; width: max-content; max-width: 100%; padding: 10px 22px; border-radius: 999px; background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px var(--line); color: var(--mute); font-size: 15.5px; text-align: center;}
.tw-acc__switch a{font-weight: 500; color: var(--gold);}
.tw-acc__info{display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: min(100%, 860px); margin: 40px auto 0;}
.tw-acc__info > div{padding: 18px 20px; border-radius: 18px; background: rgba(19, 34, 92, .55); box-shadow: inset 0 0 0 1px var(--line);}
.tw-acc__info strong{display: block; margin-bottom: 4px; font-family: var(--font-h); font-weight: 500; font-size: 17px; color: #fff;}
.tw-acc__info p{margin: 0; font-size: 14.5px; color: var(--mute);}

/* success / already-logged-in panel */
.tw-acc__state{text-align: center; padding: 6px 0 0;}
.tw-acc__mark{display: flex; align-items: center; justify-content: center; width: 92px; height: 92px; margin: 8px auto 12px; border-radius: 50%;
  background: linear-gradient(180deg, #3bd982, #19a457); color: #fff; font-size: 52px; line-height: 1; box-shadow: 0 0 0 6px rgba(34, 192, 107, .2), 0 8px 20px rgba(0, 0, 0, .35);}
.tw-acc__state h2{margin: 0; font-family: var(--font-h); font-size: 28px; font-weight: 600; color: #fff;}
.tw-acc__state p{margin: 6px 0 0; color: var(--mute); font-size: 16px;}
.tw-acc__state p b{color: var(--gold); font-weight: 500;}
.tw-acc__state .tw-actions{margin-top: 20px; gap: 12px;}
.tw-acc__state .tw-btn{display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 28px; font-size: 17px; text-decoration: none;}
.tw-acc__state .tw-btn--ghost{background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px var(--line);}
.tw-alert a, .tw-acc__switch a{white-space: nowrap;}

@media (max-width: 720px){
  .tw-acc{padding: 44px 10px 50px;}
  .tw-acc__card{padding: 24px 18px 26px; border-radius: 24px;}
  .tw-acc__badge{top: -26px; right: 16px; width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 0 0 3px var(--gold), 0 8px 18px rgba(0, 0, 0, .45);}
  .tw-acc__h1{margin-right: 84px; font-size: 30px; gap: 0 10px;}
  .tw-acc__h1 small{font-size: 14px;}
  .tw-acc__lead{margin: 2px 84px 18px 0; font-size: 14.5px;}
  .tw-acc__form--grid{grid-template-columns: 1fr; gap: 14px;}
  .tw-acc__field input{height: 50px; font-size: 16px;}
  .tw-acc__rules{margin-left: 0;}
  .tw-acc__check{font-size: 15px;}
  .tw-acc__submit{font-size: 21px; min-height: 54px; width: 100%;}
  .tw-acc__info{grid-template-columns: 1fr; gap: 10px; margin-top: 30px;}
  .tw-acc__state h2{font-size: 24px;}
  .tw-acc__state .tw-actions .tw-btn{flex: 1 1 140px;}}
