/* === Estilo global === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", Arial, sans-serif;
}

body {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* === Cabeçalho e logo === */
header {
  text-align: center;
  margin-bottom: 25px;
  color: #fff;
}

.logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

header h1 {
  font-size: 2rem;
  letter-spacing: 1px;
  font-weight: 600;
}

.subtitle {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* === Container principal === */
.container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

/* === Card de login === */
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.2);
  padding: 35px 30px;
  animation: fadeIn 0.6s ease-in-out;
}

/* === Formulário === */
.form-group {
  margin-bottom: 18px;
}

form label {
  display: block;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
}

form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form input:focus {
  border-color: #2575fc;
  box-shadow: 0 0 0 3px rgba(37,117,252,0.15);
  outline: none;
}

/* === Botão === */
.btn {
  width: 100%;
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 16px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn:hover {
  background: linear-gradient(90deg, #5a0fc2, #1f68e9);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37,117,252,0.3);
}

.btn:active {
  transform: scale(0.97);
}

/* === Mensagem de erro === */
.message {
  background: #ffefef;
  color: #b00020;
  border: 1px solid #e57373;
  padding: 10px 15px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 500;
  animation: fadeDown 0.4s ease;
}

/* === Animações === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Responsividade === */
@media (max-width: 480px) {
  .card {
    padding: 25px 20px;
  }
  header h1 {
    font-size: 1.6rem;
  }
}


/* === Botão secundário === */
.btn-secondary {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: #fff;
  color: #2575fc;
  border: 2px solid #2575fc;
  padding: 11px;
  font-size: 15px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-secondary:hover {
  background: #2575fc;
  color: #fff;
  box-shadow: 0 4px 10px rgba(37,117,252,0.25);
}

/* === Divisor visual entre botões === */
.divider {
  text-align: center;
  margin: 18px 0 12px;
  color: #777;
  font-size: 14px;
  position: relative;
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: #ddd;
}

.divider::before { left: 0; }
.divider::after { right: 0; }


.btn-google {
    display: flex;
    align-items: center;       /* alinha verticalmente */
    justify-content: flex-start; /* logo à esquerda, texto à direita */
    width: 220px;               /* largura do botão */
    padding: 10px 15px;
    border-radius: 5px;
    background-color: white;
    border: 1px solid #ccc;
    text-decoration: none;
    color: #444;
    font-weight: bold;
    margin: 10px auto;          /* centraliza horizontalmente */
    transition: 0.3s;
}

.btn-google:hover {
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.google-logo {
    width: 24px;
    height: 24px;
    margin-right: 10px;  /* espaço entre logo e texto */
    vertical-align: middle;
}
