/* ============================================================
   🌸 FemFlow — Login Page Styles (2025)
   Arquivo exclusivo do index.html
   Usa variáveis e resets de themes.css & core.css
============================================================ */

/* Remove padding do header no login */
body.login-page {
  margin-top: 0 !important;
  padding-top: 0 !important;
  height: auto;
}

/* ------------------- WRAPPER GLOBAL ------------------- */
.login-wrapper {
  width: 100%;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

/* ------------------- CARD PRINCIPAL ------------------- */
.login-card {
  width: 100%;
  max-width: 400px;
  padding: 1.6rem 1.4rem !important;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.55);
  animation: fadeIn 0.5s ease;
  box-sizing: border-box;
  margin: 0 auto 1rem auto;
}

.login-card .logo {
  width: 130px;
  margin-bottom: 1rem;
}

/* ------------------- TÍTULOS ------------------- */
.login-card h2 {
  font-family: "Playfair Display", serif;
  color: var(--terracota);
  font-size: 1.65rem;
  margin: 0;
}

.login-card .subtitle {
  font-size: 0.95rem;
  color: var(--teal);
  margin: 0.5rem 0 1.6rem;
}

/* ------------------- CAMPOS ------------------- */
.login-card input {
  width: 78%;
  max-width: 290px;
  margin: 0 auto 1rem auto;
}

/* WRAPPER DA SENHA */
.password-wrapper {
  position: relative;
  width: 78%;
  max-width: 290px;
  margin: 0 auto 1rem auto;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  width: 100%;
  padding-right: 48px !important;
  height: 48px;             /* ★ Ajuste para igualar ao e-mail */
  line-height: 48px;
  box-sizing: border-box;
}

/* ÍCONE OLHO */
.toggle-eye {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background-image: url("../assets/icons/eye-off.svg");
  background-size: 22px;
  background-repeat: no-repeat;
  opacity: 0.55;
  cursor: pointer;
  transition: 0.25s ease;
}

.toggle-eye.active {
  background-image: url("../assets/icons/eye.svg");
  opacity: 0.9;
}

/* ------------------- MENSAGEM DE LOGIN ------------------- */
.message {
  min-height: 1.4rem;
  margin: 0.8rem 0;
  font-size: 0.95rem;
}

/* ------------------- BOTÃO ENTRAR ------------------- */
#btnEntrar {
  width: 64%;
  max-width: 240px;
  margin: 0.4rem auto 1rem auto;
  padding: 0.85rem;
  background: linear-gradient(135deg, var(--teal), var(--terracota));
  color: white;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.25s ease;
  cursor: pointer;
}

#btnEntrar:hover {
  transform: scale(1.03);
  background: linear-gradient(135deg, #2b4b45, var(--terracota));
}

/* ------------------- LINKS ------------------- */
.toggle {
  color: var(--terracota);
  text-decoration: underline;
  cursor: pointer;
  margin: 0.7rem 0;
  display: block;
}

/* ============================================================
   REMOÇÃO DEFINITIVA DO MEDIDOR ANTIGO (3 BARRAS)
============================================================ */
.strength-meter,
.strength-bar,
#strengthMeter {
  display: none !important;
}

/* ============================================================
      NOVO MEDIDOR DE SENHA — BARRA ÚNICA INTERNA
============================================================ */
.password-strength {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -2px;
  height: 4px;
  background: #e6ddd8;
  border-radius: 4px;
  overflow: hidden;
}

.password-strength-fill {
  width: 0%;
  height: 100%;
  background: var(--terracota);
  transition: width 0.25s ease, background 0.25s ease;
  border-radius: 4px;
}

/* ============================================================
   BOTÕES SOCIAIS
============================================================ */
.social-row.boho {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 1.5rem 0 0.5rem;
}

.social-icon.boho {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(145deg, #E5E5E5, #6B6B6B, #335953);
  border: 1px solid rgba(204, 106, 90, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 10px rgba(0,0,0,0.12),
    inset 0 1px 2px rgba(255,255,255,0.4);
  transition: 0.35s;
  cursor: pointer;
}

.social-icon.boho:hover {
  transform: scale(1.07);
}

/* ============================================================
   BOTÃO DE IDIOMA (CORRIGIDO)
============================================================ */
.login-lang-btn {
  background: #ffffff;
  border: 1px solid #d8ccc8;
  padding: 6px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #335953;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px auto 16px auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);

  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

.login-lang-btn img,
.login-lang-btn svg {
  width: 16px;
  height: 16px;
}

/* ------------------- ANIMAÇÃO ------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* ============================================================
   BARRA ÚNICA DE FORÇA DA SENHA — VERSÃO FINAL
============================================================ */

/* Wrapper precisa ser relativo */
.password-wrapper {
  position: relative;
  width: 78%;
  max-width: 290px;
  margin: 0 auto 1rem auto;
}

/* Barra interna */
.password-strength {
  position: absolute;
  bottom: 6px;            /* sobe um pouco para ficar dentro do input */
  left: 12px;
  right: 12px;
  height: 4px;
  background: #e6ddd8;
  border-radius: 4px;
  overflow: hidden;
  pointer-events: none;
}

/* preenchimento que aumenta conforme a força */
.password-strength-fill {
  width: 0%;
  height: 100%;
  background: #cc6a5a;
  border-radius: 4px;
  transition: width 0.3s ease, background 0.3s ease;
}
