/* Twinsbets landing/login — dark premium theme (see twinsbets/twinsbets-landing-guia.md) */

:root {
  --bg: #080a0c;
  --panel: rgba(10, 13, 15, .94);
  --panel-border: rgba(255, 255, 255, .14);
  --text: #f4f4f2;
  --muted: #9b9da0;
  --gold: #f5b82e;
  --gold-light: #ffd665;
  --red: #d71932;
  --field: #15191c;
  --line: rgba(255, 255, 255, .08);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

.tb-body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  overflow-x: hidden;
}

.tb-body a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

/* ---------- Hero ---------- */

.tb-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.tb-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg,
      rgba(0, 0, 0, .92) 0%,
      rgba(0, 0, 0, .28) 42%,
      rgba(0, 0, 0, .25) 70%,
      rgba(0, 0, 0, .72) 100%),
    url("../../twinsbets/hero-desktop.png") center / cover no-repeat;
}

/* ---------- Header ---------- */

.tb-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1400px, calc(100% - 96px));
  margin: 0 auto;
  padding: 32px 0 0;
}

.tb-logo img {
  height: 46px;
  width: auto;
  display: block;
}

.tb-language {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--text);
  cursor: default;
}

.tb-language__icon {
  font-size: 15px;
}

/* ---------- Hero body ---------- */

.tb-hero__body {
  position: relative;
  z-index: 3;
  flex: 1;
  width: min(1400px, calc(100% - 96px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 60px 0;
}

.tb-copy__categories {
  margin: 0;
  font-size: clamp(25px, 2.1vw, 34px);
  line-height: 1.45;
  letter-spacing: .14em;
  font-weight: 400;
}

.tb-copy__line {
  display: block;
  width: 54px;
  height: 4px;
  margin: 24px 0;
  background: var(--red);
}

.tb-copy__tagline {
  margin: 0;
  font-size: 14px;
  letter-spacing: .42em;
  color: var(--muted);
}

/* ---------- Login card ---------- */

.tb-login {
  width: 390px;
  max-width: 100%;
  flex-shrink: 0;
  padding: 40px 38px 34px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
  backdrop-filter: blur(14px);
}

.tb-login__head {
  margin-bottom: 22px;
}

.tb-login__head h1 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
}

.tb-login__head h1 span {
  color: var(--gold);
}

.tb-login__head p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.tb-field {
  position: relative;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 0 16px;
  background: var(--field);
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 6px;
}

.tb-field:focus-within {
  border-color: rgba(245, 184, 46, .75);
}

.tb-field__icon {
  flex-shrink: 0;
  color: var(--muted);
}

.tb-field__input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

.tb-field__input::placeholder {
  color: var(--muted);
}

.tb-field__toggle {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
}

.tb-field__toggle:hover,
.tb-field__toggle.is-active {
  color: var(--gold);
}

.tb-login__error {
  margin-top: 10px;
  opacity: 0;
  transition: opacity .3s ease;
}

.tb-login__error.opacity-1 {
  opacity: 1;
}

.tb-login__error small {
  color: var(--red);
  font-weight: 600;
  font-size: 12px;
}

.tb-login__submit {
  width: 100%;
  min-height: 52px;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #090909;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
}

.tb-login__submit:hover {
  filter: brightness(1.06);
}

.tb-login__submit .lds-ring {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0 !important;
  background: transparent !important;
}

.tb-login__submit .lds-ring div {
  width: 14px;
  height: 14px;
  border: 2px solid #090909 transparent transparent transparent;
  border-radius: 50%;
  animation: tb-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.tb-login__submit .lds-ring div:nth-child(1) { animation-delay: -0.45s; }
.tb-login__submit .lds-ring div:nth-child(2) { animation-delay: -0.3s; }
.tb-login__submit .lds-ring div:nth-child(3) { animation-delay: -0.15s; }

@keyframes tb-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.tb-login__forgot {
  display: block;
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.tb-login__forgot:hover {
  color: var(--gold);
}

/* ---------- Quick links ---------- */

.tb-quicklinks {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 65px;
  width: min(1400px, calc(100% - 96px));
  margin: 0 auto;
  padding: 0 0 56px;
}

.tb-quicklinks__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
}

.tb-quicklinks__item svg {
  color: var(--gold);
}

.tb-quicklinks__item:hover {
  color: var(--text);
}

/* ---------- Footer ---------- */

.tb-footer {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1400px, calc(100% - 96px));
  margin: 0 auto;
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
}

.tb-footer__logo img {
  height: 30px;
  width: auto;
  opacity: .85;
}

.tb-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 12px;
  color: var(--muted);
}

.tb-footer__links a:hover {
  color: var(--gold);
}

.tb-footer__copy {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Breakpoints ---------- */

/* Lock to viewport height so desktop never scrolls; mobile keeps natural scroll */
@media (min-width: 1200px) {
  .tb-body {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .tb-hero {
    flex: 1 1 auto;
    min-height: 0;
  }

  .tb-header {
    padding-top: 22px;
  }

  .tb-hero__body {
    padding: 26px 0;
  }

  .tb-quicklinks {
    padding-bottom: 26px;
  }

  .tb-footer {
    padding: 14px 0 18px;
  }
}

@media (max-width: 1199px) {
  .tb-hero__body {
    gap: 24px;
  }

  .tb-login {
    width: 340px;
    padding: 32px 28px 28px;
  }
}

@media (max-width: 768px) {
  .tb-header,
  .tb-hero__body,
  .tb-quicklinks,
  .tb-footer {
    width: calc(100% - 32px);
  }

  .tb-header {
    padding-top: 24px;
  }

  .tb-hero__bg {
    background:
      linear-gradient(180deg,
        rgba(0, 0, 0, .15) 0%,
        rgba(0, 0, 0, .25) 32%,
        rgba(0, 0, 0, .92) 61%,
        var(--bg) 100%),
      url("../../twinsbets/hero-mobile.png") top center / cover no-repeat;
  }

  .tb-hero__body {
    flex-direction: column;
    align-items: stretch;
    padding: 32px 0 24px;
    gap: 28px;
  }

  .tb-copy__categories,
  .tb-copy__tagline {
    text-align: center;
  }

  .tb-copy__line {
    margin: 20px auto;
  }

  .tb-login {
    width: 100%;
    padding: 28px 20px;
  }

  .tb-field {
    min-height: 52px;
    height: auto;
  }

  .tb-login__submit {
    min-height: 54px;
  }

  .tb-quicklinks {
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 40px;
  }

  .tb-footer {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 390px) {
  .tb-login__head h1 {
    font-size: 21px;
  }

  .tb-quicklinks {
    gap: 10px;
  }

  .tb-quicklinks__item span {
    font-size: 10px;
  }
}
