* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  min-height: 100vh;
  background: url("../img/carrucel/conteudo1.webp") no-repeat center center fixed;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #fff;
}

.auth-container {
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(204, 164, 155, 0.28);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.auth-header {
  padding: 28px 24px 18px;
  text-align: center;
}

.auth-header img {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
}

.auth-header h1 {
  font-size: 28px;
  margin-bottom: 8px;
  color: #fff;
}

.auth-header p {
  font-size: 14px;
  color: #fff;
  opacity: 0.95;
}

.tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
}

.tab-btn {
  flex: 1;
  min-width: 120px;
  border: 1px dotted rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  background: transparent;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: 0.25s ease;
}

.tab-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transition: 0.5s;
}

.tab-btn:hover::before {
  left: 100%;
}

.tab-btn:hover {
  border-color: #fff;
  transform: translateY(-2px);
}

.tab-btn:active {
  transform: scale(0.97);
}

.tab-btn.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid #fff;
}

.form-area {
  padding: 24px;
}

.form-box {
  display: none;
}

.form-box.active {
  display: block;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label,
.foto-box label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #fff;
  font-weight: 600;
}

.form-group input,
.foto-box input[type="file"],
.google-password-box input {
  width: 100%;
  padding: 13px 14px;
  border: 1px dotted rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  outline: none;
  transition: 0.2s ease;
  font-size: 15px;
  background: rgba(122, 90, 81, 0.18);
  color: #fff;
}

.form-group input:focus,
.google-password-box input:focus {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14);
}

.form-group input::placeholder,
.google-password-box input::placeholder {
  color: rgba(255, 255, 255, 0.86);
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  width: 100%;
  padding: 13px 48px 13px 14px;
}

.toggle-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.toggle-eye:hover {
  color: #fff;
}

.password-strength {
  margin-top: 8px;
}

.strength-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(247, 218, 212, 0.55);
  overflow: hidden;
  margin-bottom: 6px;
}

.strength-fill {
  height: 100%;
  width: 0%;
  transition: 0.25s ease;
  border-radius: 999px;
  background: #d32f2f;
}

.strength-text {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.helper-text {
  margin-top: 6px;
  font-size: 12px;
  color: #fff;
  line-height: 1.4;
}

.foto-box {
  margin-bottom: 14px;
}

.foto-box input[type="file"] {
  display: block;
  cursor: pointer;
}

.foto-preview-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.foto-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ead8d1;
  display: none;
}

.foto-info {
  font-size: 12px;
  color: #fff;
  line-height: 1.4;
}

.btn-primary {
  width: 100%;
  max-width: 220px;
  border: none;
  background: rgba(172, 121, 107, 0.45);
  backdrop-filter: blur(5px);
  color: #fff;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s ease;
  margin: 10px auto 0;
  display: block;
}

.btn-primary:hover {
  background: #ac796b;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: scale(0.98);
}

.forgot-password {
  width: 100%;
  display: block;
  margin: 12px auto 0;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  opacity: 0.9;
}

.forgot-password:hover {
  opacity: 1;
}

.btn-google {
  width: 100%;
  max-width: 260px;
  margin: 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-google:hover {
  background: #f7f7f7;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.google-password-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(122, 90, 81, 0.22);
  border: 1px dotted rgba(255, 255, 255, 0.8);
}

.google-password-box h3,
.google-password-box p {
  color: #fff;
  text-align: center;
}

.google-password-box h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.google-password-box p {
  font-size: 13px;
  opacity: 0.92;
  line-height: 1.4;
  margin-bottom: 14px;
}

.msg {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  min-height: 20px;
  font-weight: 700;
}

.msg.error {
  color: #ffdddd;
}

.msg.success {
  color: #dfffe0;
}

/* MODAL ESQUECI A SENHA */
.modal-reset {
  position: fixed;
  inset: 0;
  padding: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(28, 18, 15, 0.68);
  backdrop-filter: blur(8px);
  z-index: 9999;
}

.modal-reset.active {
  display: flex;
}

.modal-reset-box {
  width: 100%;
  max-width: 420px;
  position: relative;
  padding: 32px 26px 26px;
  border-radius: 22px;
  background: rgba(204, 164, 155, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  color: #fff;
  animation: modalResetShow 0.25s ease;
}

@keyframes modalResetShow {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-reset-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(122, 90, 81, 0.32);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s ease;
}

.modal-reset-close:hover {
  background: rgba(122, 90, 81, 0.52);
  transform: rotate(90deg);
}

.modal-reset-box h2 {
  margin-bottom: 8px;
  padding-right: 36px;
  font-size: 24px;
  color: #fff;
}

.modal-reset-box p {
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.94);
}

.modal-reset-box .form-group {
  margin-bottom: 16px;
}

.modal-reset-box .form-group label {
  color: #fff;
}

.modal-reset-box .form-group input {
  width: 100%;
  padding: 13px 14px;
  border: 1px dotted rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  outline: none;
  font-size: 15px;
  background: rgba(122, 90, 81, 0.22);
  color: #fff;
  transition: 0.2s ease;
}

.modal-reset-box .form-group input::placeholder {
  color: rgba(255, 255, 255, 0.82);
}

.modal-reset-box .form-group input:focus {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16);
}

.modal-reset-box .btn-primary {
  max-width: 100%;
  background: rgba(122, 90, 81, 0.45);
}

.modal-reset-box .btn-primary:hover {
  background: #7a5a51;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

@media (max-width: 480px) {
  body {
    padding: 12px;
  }

  .auth-container {
    max-height: 94vh;
    border-radius: 18px;
  }

  .auth-header {
    padding: 22px 18px 12px;
  }

  .auth-header h1 {
    font-size: 24px;
  }

  .tabs {
    padding: 10px 16px;
    gap: 8px;
  }

  .tab-btn {
    min-width: 0;
    font-size: 13px;
    padding: 10px 8px;
  }

  .form-area {
    padding: 20px 16px;
  }

  .btn-primary,
  .btn-google {
    max-width: 100%;
  }

  .modal-reset {
    padding: 14px;
  }

  .modal-reset-box {
    padding: 28px 20px 22px;
    border-radius: 18px;
  }

  .modal-reset-box h2 {
    font-size: 22px;
  }
}

/* Integração Google: criação de senha após primeiro acesso */
.google-password-box {
  display: none;
  margin: 0 24px 24px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 16px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
}
.google-password-box[hidden] { display: none !important; }
.google-password-box h2 { margin: 0 0 8px; font-size: 1.15rem; }
.google-password-box p { margin: 0 0 16px; line-height: 1.5; }
@media (max-width: 480px) {
  .google-password-box { margin: 0 16px 18px; padding: 16px; }
}
