.br-auth-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #04161e;
  background-size: cover;
  background-position: center;
}
.br-auth-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(4, 22, 30, 0.75);
}

.br-auth-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  position: relative;
  z-index: 100;
}

.br-auth-logo {
  max-width: 260px;
  max-height: 90px;
  margin-bottom: 24px;
}

.br-auth-card {
  width: 100%;
  max-width: 380px;
}

.br-auth-title {
  font-size: 22px;
  margin-bottom: 12px;
}

.br-hidden {
  display: none;
}

.br-auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 22px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.br-auth-tabs button.br-auth-tab {
  flex: 1;
  justify-content: center;
  gap: 6px;
  height: 38px;
  min-height: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 700;
}
.br-auth-tabs button.br-auth-tab .icon {
  font-size: 15px;
}
.br-auth-tabs button.br-auth-tab:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}
.br-auth-tabs button.br-auth-tab:focus-visible {
  outline: 2px solid #1cc2eb;
  outline-offset: 1px;
}
.br-auth-tabs button.br-auth-tab.br-btn-active {
  background: #1cc2eb;
  color: #04161e;
  box-shadow: 0 2px 12px rgba(28, 194, 235, 0.35);
}

.br-auth-card .br-form-label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
.br-auth-card .br-input {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 15px;
  box-shadow: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.br-auth-card .br-input:focus {
  outline: none;
  border-color: #1cc2eb;
  background-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(28, 194, 235, 0.2);
}
.br-auth-card select.br-input option {
  color: #04161e;
}
.br-auth-card .br-input:-webkit-autofill,
.br-auth-card .br-input:-webkit-autofill:hover,
.br-auth-card .br-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #0b2a36 inset;
  -webkit-text-fill-color: #ffffff;
  caret-color: #ffffff;
}

.br-auth-submit {
  display: flex;
  width: 100%;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  border: 0;
  border-radius: 8px;
  background: #1cc2eb;
  color: #04161e;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: none;
  box-shadow: 0 6px 20px rgba(28, 194, 235, 0.3);
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
}
.br-auth-submit .icon {
  font-size: 16px;
}
.br-auth-submit:hover {
  filter: brightness(1.1);
}
.br-auth-submit:active {
  transform: scale(0.99);
}
.br-auth-submit:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}
.br-auth-submit:disabled {
  cursor: progress;
  filter: saturate(0.6) brightness(0.9);
}

.br-auth-forgot {
  margin: -6px 0 16px;
  text-align: right;
  font-size: 13px;
}
.br-auth-forgot a, .br-auth-forgot a:link, .br-auth-forgot a:visited {
  color: #1cc2eb;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(28, 194, 235, 0.4);
  text-underline-offset: 3px;
}
.br-auth-forgot a:hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
}
.br-auth-forgot .icon {
  font-size: 12px;
  margin-right: 2px;
}

.br-auth-remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 22px;
}
.br-auth-remember-row .br-auth-forgot {
  margin: 0;
}

.br-auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}
.br-auth-remember input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #1cc2eb;
}

.br-auth-privacy {
  margin: 14px 0 0;
  text-align: center;
}
.br-auth-privacy a, .br-auth-privacy a:link, .br-auth-privacy a:visited {
  color: rgba(255, 255, 255, 0.7);
}
.br-auth-privacy a:hover {
  color: #ffffff;
}

.br-auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.br-auth-or::before, .br-auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.br-auth-card .br-btn-block {
  min-height: 48px;
  padding: 10px 18px;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
}
.br-auth-card .br-btn-block .icon {
  font-size: 17px;
}
.br-auth-card .br-form-hint-block {
  margin-top: 0;
}
.br-auth-card .br-btn + .br-form-hint-block {
  margin-top: 14px;
}

.br-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.br-auth-divider::before, .br-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.br-auth-panel {
  display: none;
}
.br-auth-panel.active {
  display: block;
}

.br-auth-error {
  color: #f44336;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}
.br-auth-error .icon {
  margin-right: 4px;
}

.br-auth-success {
  color: #24da98;
  font-size: 14px;
  text-align: center;
  line-height: 1.5;
}

.br-auth-links {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.br-auth-links a, .br-auth-links a:link, .br-auth-links a:visited {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.br-auth-links a:hover {
  color: #ffffff;
}

.br-auth-links + .br-auth-links {
  margin-top: 8px;
  padding-top: 0;
  border-top: 0;
}

.br-auth-switch {
  padding: 0 2px;
  border: 0;
  background: none;
  color: #1cc2eb;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(28, 194, 235, 0.4);
  text-underline-offset: 3px;
  cursor: pointer;
}
.br-auth-switch:hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
}
.br-auth-switch:focus-visible {
  outline: 2px solid #1cc2eb;
  outline-offset: 2px;
  border-radius: 3px;
}

.br-auth-support {
  position: fixed;
  right: 16px;
  bottom: 14px;
  z-index: 101;
}
.br-auth-support a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(4, 22, 30, 0.75);
  backdrop-filter: blur(6px);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.br-auth-support a:link, .br-auth-support a:visited {
  color: rgba(255, 255, 255, 0.85);
}
.br-auth-support a:hover {
  color: #ffffff;
  border-color: #1cc2eb;
}

body.login #loader,
body.login #small-loader,
body.login .overlay-bg,
body.login #feedback {
  z-index: 500;
}

.br-auth-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 600;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.br-auth-modal-overlay.active {
  display: flex;
}

.br-auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 10, 14, 0.8);
  backdrop-filter: blur(2px);
}

.br-auth-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  animation: brAuthModalIn 0.18s ease-out;
}
.br-auth-modal-panel.is-error .br-feedback-icon {
  background: rgba(244, 67, 54, 0.16);
  color: #f44336;
}
.br-auth-modal-panel.is-success .br-feedback-icon {
  background: rgba(36, 218, 152, 0.16);
  color: #24da98;
}
.br-auth-modal-panel.is-info .br-feedback-icon {
  background: rgba(28, 194, 235, 0.16);
  color: #1cc2eb;
}
.br-auth-modal-panel .br-feedback-cta {
  width: 100%;
}
.br-auth-modal-panel .br-feedback-body ul {
  margin: 0;
  list-style: disc;
}

@keyframes brAuthModalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.br-turnstile {
  display: flex;
  justify-content: center;
  margin: 0 0 14px;
}

.br-legal-wrap {
  position: relative;
  z-index: 100;
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px 64px;
  box-sizing: border-box;
}

.br-legal-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  margin-bottom: 22px;
  font-size: 14px;
}
.br-legal-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}
.br-legal-nav a:hover {
  color: #ffffff;
}
.br-legal-nav .br-legal-back {
  font-weight: 700;
}
.br-legal-nav .br-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.br-legal-nav .is-active {
  color: #1cc2eb;
  font-weight: 700;
}

.br-legal-head {
  margin-bottom: 18px;
}
.br-legal-head h1 {
  margin: 0 0 4px;
  font-size: 32px;
  line-height: 1.15;
  color: #ffffff;
}
.br-legal-head p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.br-legal {
  padding: 28px 30px;
}
.br-legal h2 {
  margin-top: 1.6em;
  font-size: 20px;
}
.br-legal .br-legal-foot {
  margin-top: 2em;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}
@media (max-width: 600px) {
  .br-legal {
    padding: 20px 18px;
  }
}
