/* ===== LOGIN MODAL ===== */
.login-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.login-box {
  background: var(--secondary-color);
  padding: 30px 25px;
  width: 90%;
  max-width: 85vh;
  overflow-y: auto;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  animation: fadeUp 0.4s ease;
}

.input-premium {
  width: 100%;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid #2d3748;
  background: #1f2937;
  color: white;
  outline: none;
  transition: 0.3s;
}

.input-premium:focus {
  border: 1px solid #8f6fff;
  box-shadow: 0 0 0 3px rgba(143,111,255,0.2);
}

.btn-premium {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(to right, #1d7efd, #8f6fff);
  color: white;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 10px;
  gap: 8px;
  transition: 0.3s;
}

.btn-premium:hover {
  transform: translateY(-2px);
}

.btn-google {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #2d3748;
  background: #1f2937;
  color: white;
  cursor: pointer;
  margin-bottom: 15px;
}
/* ===OUTROS CÓDIGOS DO LOGIN (INATIVOS) */
.login-logo {
  width: 100px;
  margin-bottom: 10px;
}

.login-box h2 {
  margin-bottom: 5px;
  font-size: 1.4rem;
}

.login-box p {
  font-size: 0.95rem;
  color: var(--placeholder-color);
  margin-bottom: 15px;
}

.login-box input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  outline: none;
  background: var(--primary-color);
  color: var(--text-color);
  margin-bottom: 15px;
  font-size: 1rem;
}

.login-box button {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to right, #1d7efd, #8f6fff);
  transition: transform 0.2s ease, opacity 0.2s;
}

.login-box button:hover {
  transform: scale(1.03);
  opacity: 0.95;
}

/* AVATAR UPLOAD */
.avatar-upload {
  position: relative;
  width: 100px;
  margin: 0 auto 20px;
}

.avatar-upload img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #8f6fff;
}

.avatar-upload button {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #8f6fff;
  border: none;
  border-radius: 50px;
  padding: 6px;
  color: white;
  cursor: pointer;
}

.switch-text {
  font-size: 14px;
  color: #aaa;
}

.switch-text span {
  color: #8f6fff;
  cursor: pointer;
  font-weight: 600;
}

.switch-text span:hover {
  text-decoration: underline;
}

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

/* ===== BOTÃO SAIR (LOGOUT) ===== */
.logout-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 12px;
  border: none;
  cursor: pointer;

  font-size: 0.95rem;
  font-weight: 600;
  color: white;

  background: linear-gradient(to right, #1d7efd, #8f6fff);

  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s;
}

.logout-btn span.material-symbols-rounded {
  font-size: 1.3rem;
}

.logout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(214, 41, 57, 0.45);
  opacity: 0.95;
}

.logout-btn:active {
  transform: scale(0.96);
}

/* ===== LOGIN TERMS ===== */
.login-terms{
  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--placeholder-color);
  margin-top: 10px;
  opacity: 0.8;
}

.login-terms a {
  color: #8f6fff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.login-terms a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, #1d7efd, #8f6fff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.login-terms a:hover::after {
  transform: scaleX(1);
}

/* ===== LOGIN CLOSE BUTTON ===== */
.login-box {
  position: relative;
}

.login-close {
  position: absolute;
  top: 14px;
  right: 12px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: var(--placeholder-color);
  display: flex;
  transition: all 0.25s ease;
  backdrop-filter: blur(6px);
}

.login-close:hover {
  color: white;
  transform: rotate(90deg) scale(1.1);
}

.login-close:active {
  transform: scale(0.9);
}

/* Esqueceu senha */
.forgot-password {
  text-align: right;
  margin-top: 8px;
  margin-bottom: 10px;
  font-size: 14px;
}

.forgot-password span {
  color: #3b82f6;
  cursor: pointer;
  transition: 0.3s;
}

.forgot-password span:hover {
  text-decoration: underline;
  opacity: 0.8;
}

/* AINDA SOBRE A SENHA */
.password-container {
  position: relative;
  align-items: center;
}

.password-container input {
  width: 100%;
  padding-right: 20px; /* espaço para o ícone */
}

.password-toggle {
  position: absolute;
  right: 15px;
  cursor: pointer;
  font-size: 18px;
  color: #888;
  transition: color 0.3s;
  justify-content: center;
  align-items: center;
}

.password-toggle:hover {
  color: #3b82f6; /* cor azul moderna */
}

.login-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.login-chip i {
  font-size: 18px;
}

/*shegsnshjdndh */
.login-btn span.material-symbols-rounded {
  color: #8f6fff;
}

/* Login modal */
.google-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.google-btn:hover {
  opacity: 0.9;
}

.email-input {
  width: 100%;
  padding: 12px;
  margin: 5px 0;
  border-radius: 8px;
  border: none;
  background: var(--secondary-color);
  color: var(--text-color);
}

.email-btn {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(to right, #1d7efd, #8f6fff);
  color: white;
  cursor: pointer;
}

.email-btn.register {
  background: #28a745;
}

/* ========== BOTÃO DE CONTINUAR COM GOOGLE ========= */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.google-icon {
  width: 20px;
  height: 20px;
}


/* ======== COR DO BOTÃO GOOGLE =======÷ */
.btn-google {
  background: #ffffff !important;
  color: #000 !important;
  border: 3px solid #1d7efd;
}

/* MENSAGEM DE ERRO */
/* ============================= */
/* BARRA DE ERRO LOGIN PREMIUM  */
/* ============================= */
.login-error-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #ff4d4d, #ff1a1a);
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 20;
}

.login-error-bar i {
  font-size: 18px;
}

.login-error-bar.show {
  transform: translateY(0);
  opacity: 1;
}

/* Barra de sucesso flutuante */
.login-success-bar {
  width: 100%;
  position: fixed;
  top: 0;
  left: 50%;
  background-color: #4caf50;
  color: white;
  padding: 12px 24px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0;
  z-index: 999;
  pointer-events: none;
  transition: opacity 0.5s, transform 0.5s;
}

/* quando estiver visível */
.login-success-bar.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== AVISO TAMANHO AVATAR ===== */
.avatar-info {
  background: rgba(29, 126, 253, 0.15);
  color: white;
  padding: 8px;
  border-radius: 8px;
  font-size: 12px;
  margin-top: -10px;
  margin-bottom: 10px;
  text-align: center;
}

/* ===== ERRO AVATAR ===== */
.avatar-error {
  display: none;
  align-items: center;
  gap: 6px;
  background: rgba(255, 77, 77, 0.15);
  color: #ff4d4d;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 10px;
  justify-content: center;
}

.avatar-error.show {
  display: flex;
}

.avatar-error i {
  font-size: 16px;
}

/* ===== ESTADO ERRO AVATAR ===== */
.avatar-upload.error img {
  border: 3px solid #ff4d4d !important;
  box-shadow: 0 0 0 4px rgba(255, 77, 77, 0.2);
}

.avatar-upload.error button {
  background: #ff4d4d !important;
}

/* AVATAR FUNDO */
/* Avatar placeholder estilo profissional */
.avatar-upload {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 3px solid #8f6fff;
  background: linear-gradient(135deg, #1f2937, #2d3748);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8f6fff;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
}

.avatar-upload img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* O texto só aparece quando não tem imagem */
.avatar-upload img[src="images/user-placeholder.png"] {
  display: none;
}

.avatar-upload::before {
  content: "Sua imagem aqui";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none; /* não bloqueia clique */
  font-size: 12px;
  font-weight: 500;
  color: #8f6fff;
  text-align: center;
  white-space: pre-wrap;
  }
