/* auth_style.css */

:root {
  --primary: #2d5a27; /* Verde Monte Santo */
  --secondary: #e6b33e; /* Dourado */
  --light-bg: #f8f9fa; /* Fundo das páginas */
  --white: #ffffff;
  --text-dark: #333;
  --error: #e74c3c;
  --success: #2ecc71;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--light-bg);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.auth-card {
  background: var(--white);
  width: 100%;
  max-width: 400px;
  padding: 30px 40px; /* Reduzi de 40px para 30px no topo/base */
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.auth-logo {
  height: 80px;
  display: block; /* Transforma em bloco para aceitar margens automáticas */
  margin: 0 auto 25px auto; /* Centraliza horizontalmente e mantém espaço abaixo */
  border-radius: 12px;
  margin: 0 auto 25px auto;
}

.auth-card h2 {
  color: var(--primary);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-card p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 20px;
  max-width: 420px; /* Aumentar levemente a largura */
  padding: 30px 40px; /* Reduzir um pouco o padding vertical */
}

/* Campos de entrada */
.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--primary);
}

.form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #eee;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: #fafafa;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(45, 90, 39, 0.05);
}

/* Botões Estilizados */
.btn-auth {
  background: var(--primary);
  color: white;
  border: none;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 5px;
  letter-spacing: 0.5px;
}

.btn-auth:hover {
  background: #23471e;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(45, 90, 39, 0.2);
}

/* Mensagens de Erro/Sucesso */
.msg {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.msg-error {
  background: #fff5f5;
  color: var(--error);
  border: 1px solid #fed7d7;
}

.msg-success {
  background: #f0fff4;
  color: var(--success);
  border: 1px solid #c6f6d5;
}

/* Link de alternar (Login/Cadastro) */
.toggle-link {
  margin-top: 15px;
  font-size: 0.9rem;
  color: #777;
  text-align: center;
}

.toggle-link a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}

.toggle-link a:hover {
  color: #c99a2e;
  text-decoration: underline;
}

/* Responsividade básica */
@media (max-width: 480px) {
  .auth-card {
    padding: 30px 20px;
  }
}
