:root {
  --red: #de1b22;
  --header-red: #da1b21;
  --panel: #f3f3f3;
  --panel-bar: #e7e7e7;
  --field: #e8f0fe;
  --field-border: #b6afaf;
  --black: #212121;
  --text: #242424;
  --line: #dedede;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ticket-header {
  height: 100px;
  background: var(--header-red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-logo {
  width: 170px;
  height: 85px;
  background: url("https://static-fr.roboticket.com/NewLayout/BSFC/Images/emblem-top.svg")
    center / contain no-repeat;
}

.ticket-main {
  flex: 1;
  padding: 35px 0 26px;
}

.login-card {
  width: 515px;
  margin-inline-start: 90px;
  background: var(--panel);
  border-radius: 6px;
  overflow: hidden;
}

.form-body {
  padding: 28px 34px 20px;
}

h2 {
  margin: 0 0 18px;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
}

.fanid {
  display: block;
  width: 167px;
  height: 35px;
  object-fit: contain;
  margin: 0 auto 22px;
}

.game-label {
  min-height: 20px;
  margin: -8px 0 12px;
  text-align: center;
  color: #7b1018;
  font-size: 16px;
  font-weight: 700;
}

label {
  display: block;
  margin: 15px 0 7px;
  font-size: 19px;
  font-weight: 700;
}

.field-wrap {
  position: relative;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--field-border);
  border-radius: 6px;
  background: var(--field);
  color: #111;
  font-size: 16px;
  padding: 8px 12px;
  text-align: right;
  outline: none;
  font-family: inherit;
}

input:focus,
select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(222, 27, 34, 0.18);
}

.password {
  padding-left: 42px;
}

.eye {
  position: absolute;
  left: 11px;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  color: #555;
  font-size: 22px;
  line-height: 24px;
  text-align: center;
  user-select: none;
}

.status,
.admin-note {
  min-height: 22px;
  margin-top: 12px;
  color: #6b1117;
  font-size: 15px;
  font-weight: 700;
}

.actions-strip {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 13px;
  padding: 17px 34px 20px;
  background: var(--panel-bar);
  direction: ltr;
}

button {
  min-height: 46px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  font-size: 17.6px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.login-btn {
  width: 117px;
  background: var(--red);
}

.cancel-btn {
  width: 98px;
  background: var(--black);
}

.ticket-footer {
  min-height: 118px;
  background: #050505;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.language {
  font-size: 16px;
}

.language a {
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}

.language a.active {
  font-weight: 700;
  text-decoration: underline;
}

.rbo {
  width: 150px;
  height: 34px;
  object-fit: contain;
}

.accessibility {
  position: fixed;
  left: 0;
  bottom: 30px;
  width: 46px;
  height: 46px;
  border-radius: 0 6px 6px 0;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.admin-page {
  background: #f5f5f5;
}

.admin-header {
  min-height: 94px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 34px;
  color: #fff;
}

.admin-header h1 {
  margin: 0;
  font-size: 26px;
}

.back-link {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.admin-main {
  width: min(1100px, calc(100% - 28px));
  margin: 24px auto;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.login-box {
  width: min(430px, 100%);
  margin: 0 auto;
  padding: 30px;
}

.dashboard {
  display: none;
  grid-template-columns: 310px 1fr;
  gap: 22px;
  padding: 22px;
}

.dashboard.active {
  display: grid;
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
  background: #fbfbfb;
}

.admin-card h2 {
  font-size: 21px;
  text-align: right;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.admin-actions button {
  width: auto;
  min-width: 122px;
  padding: 0 16px;
  background: var(--black);
}

.admin-actions .primary,
button.primary {
  background: var(--red);
}

.admin-actions .danger,
button.danger {
  background: #b9151c;
}

p {
  margin: 10px 0 0;
  color: #666;
  font-size: 14px;
  line-height: 1.55;
}

.summary {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 15px;
}

.summary li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 8px;
}

.wide {
  grid-column: 1 / -1;
}

.file-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: end;
}

.download-link {
  display: none;
  width: fit-content;
  margin-top: 14px;
  border-radius: 5px;
  background: var(--black);
  color: #fff;
  padding: 12px 16px;
  text-decoration: none;
  font-weight: 700;
}

.download-link.active {
  display: inline-block;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.games-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.games-table th,
.games-table td {
  border-bottom: 1px solid #e5e5e5;
  padding: 10px 8px;
  text-align: right;
  vertical-align: middle;
}

.games-table th {
  background: #f0f0f0;
  font-weight: 700;
}

.link-input {
  min-width: 290px;
  direction: ltr;
  text-align: left;
  background: #fff;
}

button.small,
.download-link {
  min-height: 38px;
  font-size: 14px;
  padding: 9px 12px;
}

@media (max-width: 760px) {
  .ticket-main {
    padding: 12px 12px 0;
  }

  .login-card {
    width: 100%;
    margin: 0;
    border-radius: 5px;
  }

  .form-body {
    padding: 25px 22px 18px;
  }

  h2 {
    font-size: 27px;
  }

  .actions-strip {
    padding: 16px 22px 19px;
    justify-content: flex-start;
  }

  .login-btn {
    width: 117px;
  }

  .cancel-btn {
    width: 112px;
  }

  .admin-header {
    height: auto;
    padding: 18px;
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard {
    grid-template-columns: 1fr;
  }

  .file-row {
    grid-template-columns: 1fr;
  }
}
