/* ==========================================================================
   1. RESET DE PROPRIEDADES GLOBAL E CONFIGURAÇÃO DE BODY
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(90deg, #d8d2d2 0%, #f5f2f2 100%);
  color: #111111;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: 0.25s ease;
}

button, input, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

main.container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 20px 60px 20px;
}

/* ==========================================================================
   2. ESTILOS DO NAV BAR (MENU SUPERIOR)
   ========================================================================== */
nav {
  padding: 10px 0;
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  position: fixed;
  top: 0;
  left: 0;
  align-items: center;
  background-color: #000000;
  color: #fff;
  z-index: 1000;
}

.logo-img img {
  flex: 0 0 auto;
  flex-shrink: 0;
  flex-grow: 0;
  max-width: 150px;
  height: auto;
  margin-left: 20px;
  justify-content: space-between;
  filter: invert(100%);
}

.nav-item {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding-right: 150px; 
}

.nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.nav-item li a {
  padding-left: 20px;
  color: #fff;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-item li a:hover {
  color: #2424ff;
  transition: 2s;
}

.acesso {
  padding: 10px 40px;
  font-size: 15px;
  border: none;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  transition: 1s color;
  margin-left: -40px;
  background: none;
  outline: none;
}

.acesso:hover {
  color: #2424ff;
  transition: 2s;
}

/* ==========================================================================
   3. CONFIGURAÇÃO: MENU DROPDOWN DE ACESSO
   ========================================================================== */
.dropdown-container {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #000000;
    border: 1px solid #222222;
    border-radius: 4px;
    list-style: none;
    padding: 10px 0;
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 2000;
}

#dropdownMenu.show {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu li a:hover {
    background-color: #111111;
    color: #2424ff !important;
}

/* ==========================================================================
   4. ESTILOS DA TELA DE LOGIN (CARD & INPUTS)
   ========================================================================== */
.card {
  width: 100%;
  max-width: 400px;
}

#form_header {
  width: 100%;
  margin-bottom: 35px;
  text-align: center;
}

#form_header h2 {
  font-size: 24px;
  position: relative;
  font-weight: 700;
  text-align: center;
  color: #111111; 
  margin-bottom: 4px;
}

#form_header p {
  font-size: 14px;
  position: relative;
  font-weight: 400;
  text-align: center;
  color: #666666;
  margin-bottom: 5px;
}

#msgError {
  display: none;
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
  text-align: center;
  font-weight: bold;
}

.label-float {
  position: relative;
  width: 100%;
  height: 50px;
  margin-bottom: 25px;
  padding-top: 13px;
}

.label-float input[type="email"],
.label-float input[type="password"],
.label-float input[type="text"] {
  width: 100%;
  height: 100%;
  background-color: #eee;
  border: 0;
  border-bottom: 2px solid #fe0202;
  outline: none;
  font-size: 16px;
  color: #333333;
  padding: 5px 65px 5px 12px;
  transition: all 0.3s ease-out;
  border-radius: 6px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.label-float input:focus {
  border-bottom: 2px solid #fffb00;
  background-color: #e2e2e2;
}

.label-float > label {
  color: #8e8e8e;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 12px;
  margin-top: 23px;
  transition: all 0.3s ease-out;
  background-color: transparent;
  z-index: 2;
}

.label-float input:focus ~ label,
.label-float input:not(:placeholder-shown) ~ label {
  font-size: 13px;
  margin-top: 0;
  left: 10px;
  color: black;
  font-weight: 600;
}

.input-icon {
  display: none !important;
}

#togglePasswordText {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  z-index: 5;
  font-size: 12px;
  color: #262161;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
  line-height: 1;
  background: transparent;
  padding: 0;
}

#togglePasswordText:hover {
  color: #2424ff;
}

/* FIX: Alinhamento alterado da direita para o canto ESQUERDO */
.forget-container {
  width: 100%;
  text-align: left; /* Mudado de right para left */
  margin-top: -10px;
  margin-bottom: 25px;
  padding-left: 2px; /* Pequeno ajuste para alinhar com o início da caixa */
}

.forget-password {
  font-size: 13px;
  color: #666666;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forget-password:hover {
  color: #2424ff;
  text-decoration: underline;
}

.submit-btn {
  width: 100%;
  padding: 14px 20px !important;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  background: #111111;
  color: #fffdfd;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(5, 5, 5, 0.2);
  display: block;
  text-align: center;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.submit-btn:hover {
  background: #03b709;
  color: rgb(251, 253, 251);
}

/* ==========================================================================
   5. ESTILOS DO FOOTER (RODAPÉ)
   ========================================================================== */
footer {
  background-color: #000000;
  padding: 50px 0 20px 0;
  width: 100%;
}

.container-footer {
  max-width: 1400px;
  padding: 0 4%;
  margin: auto;
}

.row-footer {
  display: flex;
  flex-wrap: wrap;
}

footer h4 {
  font-size: 22px;
  color: white;
  text-transform: uppercase;
  font-weight: 500;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer ul li {
  margin: 10px 0;
}

footer ul li a {
  font-size: 16px;
  text-transform: capitalize;
  color: white;
  text-decoration: none;
  font-weight: 300;
  display: block;
  transition: all 0.3s ease;
}

footer ul li a:hover {
  color: #2424ff;
  transition: 1.5s;
}

.logo-dmalt-music-rodapé {
  width: 50%;
  padding: 0 15px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: flex-start; 
  padding-left: 100px;
  max-width: 250px;
  filter: invert(100%);
}

.col-politicas {
  width: auto;
  margin-left: auto;
  padding-right: 4%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 7px;
}

.col-politicas ul {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.row-copyright {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  padding-top: 15px;
}

.row-copyright p {
  color: white;
  font-size: 12px;
  font-weight: 800;
  margin: 0;
}

/* ==========================================================================
   6. RESPONSIVIDADE (CELULARES)
   ========================================================================== */
@media (max-width: 600px) {
  .logo-dmalt-music-rodapé {
    width: 100%;
    margin-bottom: 35px;
    align-items: center;
    text-align: center;
    padding-left: 0;
    margin: 0 auto;
  }
  
  .col-politicas {
    width: 100%;
    margin-bottom: 25px;
    align-items: center;
    padding-right: 0;
  }
}
