@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  background: linear-gradient(135deg, #0a0a0a, #1b1b1b);
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== HEADER ===== */
.auth-header {
  background: #111;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #f0c14b20;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.auth-header .logo {
  font-size: 1.6rem;
  font-weight: 600;
  color: #f0c14b;
}

.auth-header nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.auth-header nav a {
  color: #ddd;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.auth-header nav a:hover {
  color: #f0c14b;
}

#voltarHome {
  background: #f0c14b;
  color: #000;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

#voltarHome:hover {
  background: #ffd966;
}

/* ===== CONTAINER ===== */
.auth-container {
  width: 100%;
  max-width: 900px;
  height: 80vh;
  margin: 60px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0;
}

/* FOTO DO LADO DO LOGIN */
.auth-image {
  flex: 1;
  height: 90%;
  background-image: url("../../imgs/banners/cupomDescontoNatal.png"); /* TROCAR POR SUA FOTO */
  background-size: cover;
  background-position: center;
  border-radius: 20px 0 0 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  .auth-container {
    flex-direction: column;
    max-width: 420px;
    height: auto;
  }

  .auth-image {
    display: none;
  }

  .auth-card {
    width: 100%;
    border-radius: 20px;
  }
}


.auth-card {
  background: #141414;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  text-align: center;
  position: relative;
  overflow: hidden;
  flex: 1;
  height: 90%;
  border-radius: 0 20px 20px 0;
}

.logo-secundaria {
  font-size: 1.8rem;
  font-weight: 600;
  color: #f0c14b;
  margin-bottom: 15px;
}

.tab-buttons {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
}

.tab-buttons button {
  background: none;
  border: none;
  color: #bbb;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 500;
  padding-bottom: 5px;
}

.tab-buttons button.active {
  color: #f0c14b;
  border-bottom: 2px solid #f0c14b;
}

.form {
  display: none;
  animation: fadeIn 0.5s ease;
}

.form.active {
  display: block;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
}

.input-group input {
  width: 100%;
  padding: 12px 12px 12px 38px;
  border: 1px solid #333;
  border-radius: 10px;
  background: #1c1c1c;
  color: #fff;
  outline: none;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.input-group input:focus {
  border-color: #f0c14b;
}

.btn-primary {
  width: 100%;
  padding: 12px;
  background: #f0c14b;
  color: #000;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #ffd966;
}

.forgot {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: #f0c14b;
  text-decoration: none;
}

.forgot:hover {
  text-decoration: underline;
}

/* ==== POLÍTICAS DE PRIVACIDADE ==== */
.form span {
  display: block;
  margin-top: 14px;
  text-align: center;
}

.form span a {
  color: #6b6b6b;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.form span a:hover {
  color: #e7b308;
  border-bottom: 1px solid #e7b308;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  transform: scale(1.03);
} 

/* Custom Checkbox Hora Certa */
.custom-checkbox {
  display: flex;
  align-items: center;
  margin: 15px 0;
  font-size: 0.9rem;
  color: #333;
}

.custom-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #007BFF; /* Azul Hora Certa */
  border-radius: 4px;
  margin-right: 10px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.custom-checkbox input[type="checkbox"]:checked {
  background-color: #007BFF;
  border-color: #007BFF;
}

.custom-checkbox input[type="checkbox"]:checked::after {
  content: "✔";
  color: white;
  font-size: 14px;
  position: absolute;
  top: 0;
  left: 3px;
}

.custom-checkbox label a {
  color: #007BFF;
  text-decoration: none;
}

.custom-checkbox label a:hover {
  text-decoration: underline;
}

/* =============================
   POPUP MODERNO DE ALERTA
   ============================= */

.alert-box {
  position: fixed;
  top: -100px; /* começa escondido */
  right: 20px;
  background: #1e1e1e;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.4s ease;
  pointer-events: none;
}

/* QUANDO APARECE */
.alert-box.show {
  top: 25px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ÍCONES */
.alert-box i {
  font-size: 20px;
}

/* VARIAÇÕES DE COR */
.alert-box.success {
  background: #1d3b29;
  border-left: 4px solid #2ecc71;
}
.alert-box.success i {
  color: #2ecc71;
}

.alert-box.error {
  background: #3b1d1d;
  border-left: 4px solid #e74c3c;
}
.alert-box.error i {
  color: #e74c3c;
}

.alert-box.info {
  background: #1d2d3b;
  border-left: 4px solid #3498db;
}
.alert-box.info i {
  color: #3498db;
}

/* ANIMAÇÕES DE SUAVIZAÇÃO */
@keyframes slideIn {
  from { top: -50px; opacity: 0; }
  to { top: 25px; opacity: 1; }
}
@keyframes slideOut {
  from { top: 25px; opacity: 1; }
  to { top: -50px; opacity: 0; }
}

/* ======== MOBILE FIX LOGIN/CADASTRO ======== */
@media (max-width: 768px) {

  body {
    overflow-x: hidden;
  }

  .auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 110dvh;
    margin: 20px auto !important;
    padding: 15px;
  }

  .auth-card {
    padding: 25px 18px;
    border-radius: 16px;
    width: 350px;
    margin-top: 110px;
  }

  .logo-secundaria {
    font-size: 1.4rem;
  }

  .tab-buttons {
    gap: 10px;
  }

  .tab-buttons button {
    font-size: 14px;
  }

  .input-group input {
    font-size: 16px; /* impede zoom no iPhone */
    padding: 14px 14px 14px 42px;
  }

  .btn-primary {
    padding: 14px;
    font-size: 16px;
  }

  .custom-checkbox {
    font-size: 12px;
    line-height: 1.4;
  }

}
