/* Estilos do acesso: regras compartilhadas definem página, abas e campos do formulário. */
*, *::before, *::after {
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

body { 
  font-family: "Segoe UI", Arial, sans-serif; 
  background: #000; 
  color: #fff; 
  min-height: 100vh; 
  display: flex; 
  flex-direction: column; 
}

a { 
  text-decoration: none; 
  color: inherit; 
}

/* NAVBAR: posiciona a navegação e indica o link selecionado. */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(0, 0, 0, 0.95);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  border-bottom: 1px solid #222;
}

.logo {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  color: #aaa;
  text-decoration: none;
  font-size: .9rem;
  transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

/* CONTAINER CENTRAL: centraliza o formulário sobre o fundo decorativo. */
.login-page { 
  flex: 1; 
  min-height: 100vh;
  display: flex; 
  align-items: center; 
  justify-content: center; 
  padding: 120px 20px 40px; 
  position: relative; 
  overflow: hidden; 
  width: 100%;
}

.login-bg { 
  position: absolute; 
  inset: 0; 
  background: radial-gradient(ellipse at 50% 30%, #180828 0%, #000 75%); 
}

.login-grid { 
  position: absolute; 
  inset: 0; 
  background-image: linear-gradient(#fff1 1px, transparent 1px), linear-gradient(90deg, #fff1 1px, transparent 1px); 
  background-size: 60px 60px; 
  opacity: .03; 
}

/* CARTÃO MODAL: limita largura, espaçamento e destaque da caixa de acesso. */
.login-box { 
  position: relative; 
  z-index: 10; 
  background: #0d0d0d; 
  border: 1px solid #2a2a2a; 
  border-radius: 20px; 
  padding: 2.5rem 2.2rem; 
  width: 100%; 
  max-width: 480px; 
  margin: auto; 
  box-shadow: 0 30px 90px rgba(142, 36, 170, 0.25), 0 10px 40px rgba(0, 0, 0, 0.9); 
}

.login-logo { 
  text-align: center; 
  margin-bottom: 1.8rem; 
}

.login-logo .icon { 
  font-size: 3rem; 
  display: block; 
  margin-bottom: 0.5rem; 
}

.login-logo h2 { 
  font-size: 1.8rem; 
  font-weight: 800; 
  margin-bottom: 4px; 
}

.login-logo p { 
  color: #888; 
  font-size: 0.9rem; 
}

/* ALTERNÂNCIA DE ABAS: diferencia o modo de login do modo de cadastro. */
.mode-toggle { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  border: 1px solid #333; 
  border-radius: 10px; 
  overflow: hidden; 
  margin-bottom: 1.8rem; 
  background: #141414;
}

.mode-btn { 
  background: none; 
  border: none; 
  color: #888; 
  font-size: 0.95rem; 
  font-weight: 600; 
  padding: 12px; 
  cursor: pointer; 
  transition: all .2s; 
  font-family: inherit; 
}

.mode-btn.active { 
  background: linear-gradient(45deg, #8e24aa, #e91e63); 
  color: #fff; 
}

/* CAMPOS E MENSAGENS: padroniza entradas, avisos e botões do formulário. */
.msg { 
  padding: 10px 14px; 
  border-radius: 8px; 
  font-size: 0.88rem; 
  margin-bottom: 1.2rem; 
  text-align: center;
}

.msg.success { 
  background: #052e16; 
  border: 1px solid #166534; 
  color: #4ade80; 
}

.msg.error { 
  background: #2d1515; 
  border: 1px solid #991b1b; 
  color: #f87171; 
}

.fg { 
  margin-bottom: 1.2rem; 
}

.fg label { 
  display: block; 
  font-size: 0.9rem; 
  font-weight: 600; 
  margin-bottom: 6px; 
  color: #ddd; 
}

.fg input { 
  width: 100%; 
  padding: 12px 14px; 
  background: #161616; 
  border: 1px solid #333; 
  border-radius: 8px; 
  color: #fff; 
  font-size: 0.95rem; 
  font-family: inherit; 
  outline: none; 
  transition: border-color .2s; 
}

.fg input:focus { 
  border-color: #8e24aa; 
}

.btn-submit { 
  width: 100%; 
  padding: 14px; 
  background: linear-gradient(45deg, #8e24aa, #e91e63); 
  color: #fff; 
  border: none; 
  border-radius: 8px; 
  font-size: 1rem; 
  font-weight: 700; 
  cursor: pointer; 
  transition: opacity .2s; 
  margin-top: 0.5rem;
}

.btn-submit:hover { 
  opacity: .9; 
}

.voltar {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  color: #888;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.voltar:hover {
  color: #fff;
}

footer { 
  text-align: center; 
  padding: 30px; 
  color: #555; 
  font-size: .85rem; 
  border-top: 1px solid #1b1b1b; 
  background: #050505; 
}
/* Regras complementares ajustam a navegação e o logotipo nesta página. */
.nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-right: 96px;
}

.nav-links a:last-child {
  position: absolute;
  right: 0;
  padding: 8px 16px;
  border: 1px solid #d4af37;
  border-radius: 20px;
  color: #f3d46b;
  font-weight: 700;
}

.nav-links a:last-child:hover {
  background: #d4af37;
  color: #111;
}
.logo-image {
  width: 36px;
  height: 36px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 8px;
}
.hero-icon img,
.login-logo .icon img {
  width: 12.5rem;
  height: 12.5rem;
  object-fit: contain;
}