input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
select {
  box-sizing: border-box;
  max-width: 100%;
  background-size: 100% 100%;
}

.form-template input[type=checkbox] {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin: 0 8px 0 0;
  padding: 0;
  background: #2a0c06;
  border: 1px solid #ffe699;
  vertical-align: middle;
}

.login-page {
  max-width: 460px;
  margin: 8px auto 28px;
  padding: 28px 28px 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(88, 24, 8, .72), rgba(18, 6, 2, .88));
  border: 1px solid #d6611a;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .45), 0 18px 40px rgba(0, 0, 0, .35);
}

.login-page:has(table.ranking-table) {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

.login-page > .form {
  width: 100%;
}

.login-page table.ranking-table {
  width: 100%;
}

.login-page .c-title {
  margin-bottom: 18px;
}

.login-page .title {
  display: block;
  letter-spacing: .12em;
  font-size: 22px;
  text-shadow: 0 2px 0 #000;
}

.login-page .form-group {
  margin-bottom: 12px;
}

.login-page input:not([type=checkbox]):not([type=hidden]),
.login-page select,
.login-page button,
.login-page .forgot-password-button,
.login-page .field-hint {
  width: 100%;
  max-width: 100%;
}

.login-page p {
  color: #ffdfa2;
}

.login-page p a {
  color: #ffe699;
  font-weight: 700;
}

.login-block .login-form button,
.login-block .lost-pass {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 260px;
  max-width: 100%;
  height: 44px;
  box-sizing: border-box;
  white-space: nowrap;
}

.login-block .login-form button {
  margin-top: 8px;
}

.login-block .lost-pass {
  padding: 10px 5px !important;
  background: linear-gradient(to bottom, #681a02 0%, #591601 44%, #441000 100%);
  border: 1px solid #d6611a;
  border-radius: 5px;
  color: #ffe699;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.login-block .login-title {
  position: relative;
}

.login-block .float-right {
  float: none !important;
  clear: both;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 260px;
  max-width: 100%;
  margin: 10px 0 0;
}

.login-block .float-right br {
  display: none;
}

.login-page .form-group:has(.cf-turnstile),
.login-block .form-group:has(.cf-turnstile) {
  container-type: inline-size;
  display: block !important;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 300 / 68;
  height: auto;
  margin: 8px auto;
  overflow: hidden;
  transform: none !important;
}

.login-block .form-group:has(.cf-turnstile) {
  width: min(260px, 100%);
  margin-left: 0;
}

.login-page .cf-turnstile,
.login-block .cf-turnstile {
  width: 300px;
  transform-origin: top left;
  transform: scale(calc(100cqw / 300px));
}

.best-players,
.best-guilds {
  clear: both;
  margin-top: 28px;
}

.sidebar-title {
  clear: both;
  white-space: nowrap;
}

.sidebar .table-siralama {
  clear: both;
  margin-top: 6px;
}

.field-hint {
  display: block;
  width: 260px;
  max-width: calc(100% - 20px);
  margin: 5px auto 0;
  color: #f9ff92;
  font-size: 11px;
  line-height: 1.4;
  text-align: left;
}

.account-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 22px;
}

.account-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 14px;
  border: 1px solid #d6611a;
  border-radius: 5px;
  background: linear-gradient(to bottom, #681a02, #441000);
  color: #ffe699;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}

.account-menu a.active,
.account-menu a:hover,
.account-menu a:focus-visible {
  background: linear-gradient(to bottom, #a64a08, #681a02);
  outline-color: #ffe699;
}

.account-panel[hidden] {
  display: none !important;
}

.account-panel {
  min-height: 180px;
}

.ep-provider-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.ep-provider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  border: 2px solid #aa8551;
  border-radius: 8px;
  background: #f7ead0;
  color: #391b0b;
  text-align: center;
  text-decoration: none;
}

.ep-provider img {
  width: 100%;
  max-width: 200px;
  height: 85px;
  object-fit: contain;
}

.ep-provider small { color: #634226; }
.ep-provider[aria-disabled="true"] { cursor: default; }
.ep-provider[href]:hover, .ep-provider[href]:focus-visible {
  background: #fff4dc;
  color: #391b0b;
  outline: 2px solid #ffe699;
  outline-offset: 2px;
}

.account-actions {
  display: grid;
  gap: 18px;
}

.account-action {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  padding: 16px;
  border: 1px solid #74300e;
  border-radius: 6px;
  background: rgba(20, 7, 2, .35);
}

.account-action h4,
.account-action p,
.account-action .field-hint,
.account-action .form-group {
  grid-column: 1 / -1;
}

.account-action label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  color: #ffe699;
}

.account-action input,
.account-action select {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.account-action .field-hint {
  width: auto;
  max-width: none;
  margin: 0;
}

.account-action button {
  grid-column: 1 / -1;
  width: auto;
  justify-self: start;
}

@media screen and (max-width: 650px) {
  .account-menu a { flex: 1 1 calc(50% - 8px); }
  .account-action { grid-template-columns: minmax(0, 1fr); }
  .account-action h4,
  .account-action p,
  .account-action .field-hint,
  .account-action button { grid-column: 1; }
  .account-action button { width: 100%; }
}

.forgot-password-button {
  display: inline-block;
  width: 260px;
  box-sizing: border-box;
  padding: 10px 5px;
  background: linear-gradient(to bottom, #681a02 0%, #591601 44%, #441000 100%);
  border: 1px solid #d6611a;
  border-radius: 5px;
  color: #ffe699;
  font-size: 13px;
  font-family: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.account-sidebar-logout {
  display: block;
  margin-top: 8px;
  cursor: pointer;
}

.forgot-password-button:hover,
.forgot-password-button:focus {
  background: linear-gradient(to bottom, #7b2508 0%, #681a02 44%, #511500 100%);
  color: #ffe699;
  text-decoration: none;
}

.login-block .login-recovery-links {
  display: flex;
  clear: both;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 10px 0 0;
}

.login-block .login-recovery-links .lost-pass {
  display: inline-block;
  width: 260px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 5px;
  background: linear-gradient(to bottom, #681a02 0%, #591601 44%, #441000 100%);
  border: 1px solid #d6611a;
  border-radius: 5px;
  color: #ffe699;
  text-align: center;
  text-transform: uppercase;
}

.login-block .login-recovery-links .lost-pass:hover,
.login-block .login-recovery-links .lost-pass:focus {
  background: linear-gradient(to bottom, #7b2508 0%, #681a02 44%, #511500 100%);
  color: #ffe699;
  text-decoration: none;
}
