/* ============================================================
   /assets/css/login.css
   Tela de login — layout 2 colunas premium Newpipe
   Revisão completa: responsivo, sem sobreposições, premium
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

.login-body {
  background: var(--np-black);
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
}

/* ── Wrapper principal ───────────────────────────────────── */
.login-page {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ════════════════════════════════════════════════════════════
   COLUNA ESQUERDA — Formulário
════════════════════════════════════════════════════════════ */
.login-left {
  width: 480px;
  flex-shrink: 0;
  background: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 36px;
  position: relative;
  z-index: 2;
  border-right: 1px solid rgba(192, 21, 26, 0.25);
  overflow-y: auto;
}

.login-left-inner {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  animation: loginFadeUp 0.45s ease both;
}

@keyframes loginFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Brand / Logo ───────────────────────────────────────── */
.login-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.login-brand-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
  display: block;
}

.login-brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.login-brand-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--np-silver-light);
  letter-spacing: -0.3px;
  line-height: 1.1;
}

.login-brand-sub {
  font-size: 10px;
  color: var(--np-red);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ── Card do formulário ──────────────────────────────────── */
.login-card {
  background: #1A1A1A;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--np-radius-xl, 16px);
  overflow: hidden;
  width: 100%;
}

.login-card-header {
  padding: 28px 28px 20px;
}

.login-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--np-silver-light);
  letter-spacing: -0.3px;
  margin: 0 0 4px 0;
}

.login-card-subtitle {
  font-size: 13px;
  color: var(--np-silver);
  margin: 0;
  line-height: 1.5;
}

.login-card-body {
  padding: 4px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Campos/labels ───────────────────────────────────────── */
.login-card .np-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.login-card .np-label {
  color: var(--np-silver);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.2px;
}

.login-card .np-label svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* ── Wrap do input (posição relativa para ícones abs) ────── */
.login-card .np-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.login-card .np-input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: rgba(255, 255, 255, 0.28);
  pointer-events: none;
  flex-shrink: 0;
}

.login-card .np-input {
  width: 100%;
  background: #0D0D0D;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--np-silver-light);
  height: 48px;
  font-size: 14px;
  padding: 0 14px 0 42px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  font-family: inherit;
}

/* Input de senha: espaço p/ botão olho à direita */
.login-card .np-input[type="password"] {
  padding-right: 46px;
}

.login-card .np-input::placeholder {
  color: rgba(255, 255, 255, 0.22);
}

.login-card .np-input:focus {
  border-color: var(--np-red);
  box-shadow: 0 0 0 3px rgba(192, 21, 26, 0.18);
}

/* ── Toggle mostrar/ocultar senha ────────────────────────── */
.login-toggle-pass {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
  padding: 0;
  z-index: 2;
  flex-shrink: 0;
}

.login-toggle-pass:hover {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
}

.login-toggle-pass svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* ── Linha opções: lembrar + esqueci ─────────────────────── */
.login-row-opts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 0;
}

.login-card .np-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.login-card .np-switch-label {
  color: var(--np-silver);
  font-size: 13px;
  white-space: nowrap;
}

.login-card .np-switch-track {
  background: rgba(255, 255, 255, 0.15);
}

.login-link {
  font-size: 12px;
  color: var(--np-red-light);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.18s ease;
  white-space: nowrap;
  padding: 0;
  text-decoration: none;
}

.login-link:hover {
  color: #ffffff;
}

/* ── Botão submit ────────────────────────────────────────── */
.login-submit {
  width: 100%;
  height: 48px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: var(--np-red, #C0151A);
  color: #fff;
  transition: background 0.18s ease, transform 0.1s ease;
  margin-top: 4px;
}

.login-submit:hover {
  background: #a01015;
}

.login-submit:active {
  transform: scale(0.99);
}

.login-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.09), transparent 60%);
  pointer-events: none;
}

/* ── Alertas dentro do card ──────────────────────────────── */
.login-card .np-alert {
  animation: loginFadeUp 0.3s ease both;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.login-card .np-alert svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.np-alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #86efac;
}

.np-alert-danger {
  background: rgba(192, 21, 26, 0.12);
  border: 1px solid rgba(192, 21, 26, 0.3);
  color: #fca5a5;
}

.np-alert-warning {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.25);
  color: #fde68a;
}

/* ── Rodapé do card ──────────────────────────────────────── */
.login-card-footer {
  padding: 14px 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.login-security-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.22);
  flex-wrap: wrap;
  justify-content: center;
}

.login-security-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
  flex-shrink: 0;
}

.login-copyright {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.15);
  text-align: center;
}

/* ════════════════════════════════════════════════════════════
   COLUNA DIREITA — Imagem de fundo
════════════════════════════════════════════════════════════ */
.login-right {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
}

.login-right-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}

.login-right-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 10, 10, 0.5) 0%,
    rgba(0, 0, 0, 0.0)    70%
  );
  z-index: 1;
}

/* Faixa vermelha decorativa esquerda */
.login-right::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--np-red);
  z-index: 3;
}

.login-right-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 52px 56px;
}

.login-tagline-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--np-red-light, #ff6b6b);
  margin-bottom: 12px;
}

.login-tagline-title {
  font-size: 38px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.18;
  letter-spacing: -0.5px;
  max-width: 380px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.login-tagline-title span {
  color: var(--np-red-light, #ff6b6b);
}

.login-tagline-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 16px;
  max-width: 320px;
  line-height: 1.75;
}

.login-tagline-divider {
  width: 40px;
  height: 3px;
  background: var(--np-red);
  border-radius: 99px;
  margin-top: 22px;
}

/* ════════════════════════════════════════════════════════════
   MODAL — Redefinir Senha
════════════════════════════════════════════════════════════ */
.login-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 16px;
}

.login-modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.login-modal {
  background: #1A1A1A;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--np-radius-xl, 16px);
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  transform: translateY(16px);
  transition: transform 0.22s ease;
  overflow: hidden;
}

.login-modal-overlay.is-open .login-modal {
  transform: translateY(0);
}

.login-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.login-modal-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--np-silver-light);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.login-modal-title svg {
  width: 17px;
  height: 17px;
  color: var(--np-red);
  flex-shrink: 0;
}

.login-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  padding: 0;
}

.login-modal-close:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--np-silver);
}

.login-modal-close svg {
  width: 15px;
  height: 15px;
}

.login-modal-body {
  padding: 22px 24px;
}

.login-modal-desc {
  font-size: 13px;
  color: var(--np-silver);
  margin: 0 0 18px 0;
  line-height: 1.65;
}

.login-modal-body .np-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-modal-body .np-label {
  color: var(--np-silver);
  font-size: 12px;
  font-weight: 600;
}

.login-modal-body .np-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-modal-body .np-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.login-modal-body .np-input {
  width: 100%;
  height: 44px;
  background: #0D0D0D;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--np-silver-light);
  font-size: 14px;
  padding: 0 14px 0 40px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.login-modal-body .np-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.login-modal-body .np-input:focus {
  border-color: var(--np-red);
  box-shadow: 0 0 0 3px rgba(192, 21, 26, 0.18);
}

#modalAlerta {
  margin-bottom: 14px;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
}

.login-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVO
════════════════════════════════════════════════════════════ */

@media (max-width: 960px) {
  .login-left {
    width: 420px;
    padding: 40px 28px;
  }
  .login-right-content {
    padding: 40px 44px;
  }
  .login-tagline-title {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .login-page {
    flex-direction: column;
  }
  .login-left {
    width: 100%;
    min-height: 100vh;
    padding: 40px 20px;
    border-right: none;
    align-items: flex-start;
  }
  .login-left-inner {
    max-width: 100%;
    width: 100%;
  }
  .login-right {
    display: none;
  }
  .login-brand {
    margin-bottom: 28px;
  }
  .login-brand-img {
    width: 60px;
    height: 60px;
  }
  .login-card-header {
    padding: 22px 20px 16px;
  }
  .login-card-body {
    padding: 4px 20px 20px;
    gap: 18px;
  }
  .login-card-footer {
    padding: 12px 20px 18px;
  }
  .login-card-title {
    font-size: 18px;
  }
  .login-submit {
    height: 50px;
    font-size: 15px;
  }
}

@media (max-width: 380px) {
  .login-left {
    padding: 28px 14px;
  }
  .login-card-header {
    padding: 18px 16px 14px;
  }
  .login-card-body {
    padding: 4px 16px 18px;
    gap: 16px;
  }
  .login-card-footer {
    padding: 10px 16px 16px;
  }
  .login-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }
}
