/* =========================
   MAPA DO ARQUIVO
   1. Reset, base e header
   2. Menu mobile
   3. Layout de login
   4. Card e formulário
   5. Botões e informações
   6. Responsividade
========================= */

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

html {
  scrollbar-color: #d4af37 #111;
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: #111;
  border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
  background: #d4af37;
  border-radius: 10px;
}

*::-webkit-scrollbar-thumb:hover {
  background: #f0ca52;
}

/* =========================
   HEADER
========================= */
.header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 20px 8%;
  background: rgba(0, 0, 0, 0.95);

  position: fixed;
  top: 0;
  left: 0;

  z-index: 999;
}

.logo {
  text-decoration: none;

  transition: 0.3s;
}

.logo img {
  display: block;
  width: min(220px, 28vw);
  max-height: 68px;
  object-fit: contain;
}

.logo:hover {
  opacity: 0.85;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  display: flex;
  gap: 20px;
}

.navbar a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.navbar a:hover {
  color: #d4af37;
}

/* =========================
   BOTÕES DO MENU
========================= */
.nav-btn,
.login-btn {
  transition: all 0.25s ease;
}

.nav-btn {
  background: transparent;
  color: white;

  padding: 10px 18px;
  border-radius: 8px;

  text-decoration: none;
  font-weight: bold;

  border: 2px solid transparent;
}

.nav-btn:hover {
  border: 2px solid #d4af37;
  color: #d4af37;
  transform: translateY(-2px);
}

.login-btn {
  background: transparent;
  color: white;

  padding: 10px 18px;

  border: 2px solid #d4af37;
  border-radius: 8px;

  text-decoration: none;
  font-weight: bold;
}

.login-btn:hover {
  background: #d4af37;
  color: black;
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* =========================
   BODY
========================= */
/* =========================
   BODY
========================= */
body {
  min-height: 100vh;
  position: relative;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 120px 20px 40px;

  background: #000;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../assets/imagens/barbearia-agendamento.jpg");
  background-size: min(850px, 68vw) auto;
  background-position: right 7% center;
  background-repeat: no-repeat;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.50);
  z-index: 1;
}

/* =========================
   CONTAINER
========================= */
.container {
  width: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* =========================
   CARD DE LOGIN
========================= */
.login-card {
  width: 400px;
  background: rgba(20, 20, 20, 0.95);

  padding: 40px;
  border-radius: 20px;

  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.login-card h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #d4af37;
}

.hidden {
  display: none !important;
}

/* =========================
   FORMULÁRIO
========================= */
.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.input-group label {
  color: white;
  margin-bottom: 8px;
}

.input-group input {
  padding: 14px;

  border: none;
  border-radius: 10px;

  background: #2b2b2b;
  color: white;

  outline: none;
}

/* =========================
   BOTÃO
========================= */
button {
  width: 100%;
  padding: 15px;

  border: none;
  border-radius: 10px;

  background: #d4af37;
  color: black;

  font-size: 16px;
  font-weight: bold;

  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  transform: scale(1.02);
}

.link-action {
  width: auto;
  display: block;
  margin: -8px auto 18px;
  padding: 0;
  background: transparent;
  color: #d4af37;
  border: none;
  border-radius: 0;
  font-size: 14px;
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link-action:hover {
  transform: none;
  color: #f0ca52;
}

.link-action-bottom {
  margin: 18px auto 0;
}

.login-panel h1 {
  margin-bottom: 18px;
}

.reset-copy {
  color: #d7d7d7;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 22px;
}

.login-feedback {
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.login-feedback.erro {
  background: rgba(180, 45, 45, 0.18);
  color: #ffb4b4;
  border: 1px solid rgba(255, 120, 120, 0.35);
}

.login-feedback.sucesso {
  background: rgba(54, 143, 88, 0.18);
  color: #b8f5cb;
  border: 1px solid rgba(122, 225, 156, 0.35);
}

/* =========================
   TEXTO INFORMATIVO
========================= */
.info {
  text-align: center;
  margin-top: 20px;
  color: #999;  
}

/* =========================
   RESPONSIVO
========================= */
@media (max-width: 500px) {
  .login-card {
    width: 100%;
  }
}

/* =========================
   MENU RETRÁTIL RESPONSIVO
========================= */

.menu-toggle {
  display: none;
}

@media (max-width: 768px) {

  body::before {
    background-size: 590px auto;
    background-position: right -210px center;
  }

  .menu-toggle {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    background: #d4af37;
    color: #000;

    border: none;
    border-radius: 10px;

    font-size: 22px;
    font-weight: bold;

    cursor: pointer;
  }

  .navbar {
    position: fixed;

    top: 80px;
    right: -260px;

    width: 240px;
    height: calc(100vh - 80px);

    background: #000;

    display: flex !important;
    flex-direction: column;

    gap: 14px;

    padding: 30px 20px;

    z-index: 1500;

    transition: right 0.3s ease;
  }

  .navbar.active {
    right: 0;
  }

  .navbar a {
    width: 100%;
    text-align: left;
  }

}
