/* Login XPlay TV — layout lado a lado (foto referência). Flexbox para Smart TV. */

.login-page {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  position: relative;
  overflow: auto;
  background: #05070f;
  margin: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 3vh 3vw;
}
[hidden] { display: none !important; }

.login-bg {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 0;
  pointer-events: none;
  background: #05070f url("/assets/img/android/ui/login_bg_neon.jpg?v=20261103tv4") center center / cover no-repeat;
}

/* Bloco central: logo + card próximos no meio da TV */
.login-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 2% 2% 3%;
}

.login-brand {
  width: 44%;
  max-width: 460px;
  -webkit-box-flex: 0;
  -webkit-flex: 0 1 460px;
  flex: 0 1 460px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding-right: 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  justify-content: center;
}

.login-logo {
  width: 78%;
  max-width: 420px;
  height: auto;
  display: block;
  margin-bottom: 18px;
}

.login-headline {
  margin: 0 0 12px;
  padding: 0;
  color: #fff;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  max-width: 11em;
}

.login-sub {
  margin: 0;
  padding: 0;
  color: rgba(220, 230, 245, 0.85);
  font-size: 22px;
  line-height: 1.4;
  max-width: 18em;
}

.login-panel {
  width: 46%;
  max-width: 500px;
  -webkit-box-flex: 0;
  -webkit-flex: 0 1 500px;
  flex: 0 1 500px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  margin-left: 36px; /* fallback se a TV não aceitar gap */
  background: rgba(12, 16, 30, 0.92);
  border: 1px solid rgba(100, 160, 255, 0.4);
  border-radius: 20px;
  padding: 28px 30px 24px;
  -webkit-box-shadow: 0 0 28px rgba(47, 140, 255, 0.14), 0 20px 50px rgba(0,0,0,.55);
  box-shadow: 0 0 28px rgba(47, 140, 255, 0.14), 0 20px 50px rgba(0,0,0,.55);
}

.login-title {
  margin: 0 0 20px;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
}

.field-group label {
  display: block;
  margin: 14px 0 8px;
  color: rgba(230, 236, 248, 0.92);
  font-size: 17px;
  font-weight: 600;
}
.field-group label:first-child { margin-top: 0; }

.login-field {
  position: relative;
  display: block;
}
.login-field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  margin-top: -11px;
  color: rgba(150, 175, 210, 0.85);
  pointer-events: none;
  z-index: 1;
}
.login-field input {
  width: 100%;
  height: 56px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 14px 16px 14px 48px;
  border-radius: 12px;
  border: 2px solid rgba(90, 120, 180, 0.3);
  background: rgba(6, 10, 20, 0.75);
  color: #e8eef8;
  font-size: 20px;
  outline: none;
}
.login-field-pass input {
  padding-right: 76px;
}
#password.is-revealed {
  -webkit-text-security: none;
}
.login-pass-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  margin-top: -26px;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 26px;
  background: transparent;
  cursor: pointer;
  outline: none;
  z-index: 3;
}
.login-pass-toggle img {
  display: none;
  width: 40px;
  height: 40px;
  margin: 4px auto 0;
  border: 0;
}
.login-pass-toggle .login-eye-open { display: block; }
.login-pass-toggle.is-on .login-eye-open { display: none; }
.login-pass-toggle.is-on .login-eye-off { display: block; }
.login-pass-toggle.tv-focus,
.login-pass-toggle:focus {
  border-color: #ffffff;
  background: transparent;
}
.login-field input.tv-focus,
.login-field input:focus {
  border-color: #33e1ff;
  -webkit-box-shadow: 0 0 0 2px rgba(51, 225, 255, 0.35), 0 0 20px rgba(47, 140, 255, 0.3);
  box-shadow: 0 0 0 2px rgba(51, 225, 255, 0.35), 0 0 20px rgba(47, 140, 255, 0.3);
}
.login-field.is-focused .login-field-icon { color: #33e1ff; }

.hidden { display: none !important; }

.btn-primary {
  display: block;
  width: 100%;
  height: 58px;
  margin-top: 22px;
  border: 0;
  border-radius: 12px;
  background: -webkit-linear-gradient(left, #1e8bff 0%, #6d3df0 55%, #8b5cf6 100%);
  background: linear-gradient(90deg, #1e8bff 0%, #6d3df0 55%, #8b5cf6 100%);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
}
.btn-primary:disabled { opacity: 0.55; }
.btn-primary.tv-focus {
  -webkit-box-shadow: 0 0 0 3px #33e1ff, 0 0 22px rgba(124, 58, 237, 0.45);
  box-shadow: 0 0 0 3px #33e1ff, 0 0 22px rgba(124, 58, 237, 0.45);
}

.login-switch {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: rgba(220, 230, 245, 0.9);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  outline: none;
}
.login-switch.tv-focus {
  color: #fff;
  border-color: rgba(51, 225, 255, 0.55);
}

.login-msg {
  margin: 12px 0 0;
  min-height: 1.2em;
  color: #ff5d6c;
  font-size: 17px;
}
.login-msg.ok { color: #33e1ff; }

.login-footer {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 18px;
  margin: 0;
  text-align: center;
  color: rgba(210, 220, 235, 0.8);
  font-size: 15px;
  pointer-events: none;
}

/* Celular estreito. TV LG e Samsung ficam lado a lado. */
@media screen and (max-width: 640px) {
  .login-shell {
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    justify-content: center;
    padding: 4% 4% 8%;
  }
  .login-brand,
  .login-panel {
    width: 94%;
    max-width: 94%;
    padding-right: 0;
    margin-left: 0;
  }
  .login-brand {
    text-align: center;
    -webkit-box-align: center;
    align-items: center;
    margin-bottom: 16px;
  }
  .login-logo { margin-left: auto; margin-right: auto; width: 55%; }
  .login-headline { font-size: 28px; max-width: none; }
  .login-sub { font-size: 16px; max-width: none; }
}

/* 720p: banner à esquerda, usuário e senha à direita. */
@media screen and (max-height: 800px) and (min-width: 641px) {
  .login-headline { font-size: 32px; }
  .login-sub { font-size: 18px; }
  .login-logo { max-width: 320px; }
  .login-panel { padding: 20px 22px 18px; }
  .login-title { font-size: 24px; margin-bottom: 14px; }
  .login-field input { height: 48px; font-size: 18px; }
  .btn-primary { height: 50px; font-size: 18px; margin-top: 16px; }
  .login-switch { font-size: 16px; }
  .login-footer { bottom: 10px; font-size: 13px; }
}

@media screen and (min-width: 2500px) {
  .login-headline { font-size: 56px; }
  .login-sub { font-size: 28px; }
  .login-panel { max-width: 640px; padding: 36px 40px; }
  .login-title { font-size: 36px; }
  .login-field input { height: 68px; font-size: 26px; padding-left: 56px; }
  .btn-primary { height: 70px; font-size: 28px; }
}
