/* =================================================================
    Estilos Globais e Layout das Páginas de Autenticação
    ================================================================= */
:root {
  --background-color: #121212;
  --card-background: #1e1e1e;
  --primary-text: #ffffff;
  --secondary-text: #b3b3b3;
  --accent-color: #1DB954;
  --accent-color-hover: #159a43;
  --google-btn-hover: #4285F4;
  --google-btn-bg: #3367D6;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background-color: var(--background-color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--primary-text);
}

/* =================================================================
    Container Central
    ================================================================= */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100vh;
}

.login-card {
  background-color: var(--card-background);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.login-card h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
}

.login-card p {
  margin: 0;
  color: var(--secondary-text);
  text-align: center;
}

/* Estilo do Logo */
.app-logo {
  width: 80px;
  height: auto;
  margin-bottom: 10px;
}

/* =================================================================
    Formulário e Elementos
    ================================================================= */
#login-form,
#forgot-password-form,
#reset-password-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input {
  width: 100%;
  box-sizing: border-box;
  background-color: #282828;
  color: var(--primary-text);
  border: 1px solid #404040;
  padding: 14px 20px;
  font-size: 16px;
  border-radius: 5px;
  transition: border-color 0.2s;
}

input:focus {
  outline: none;
  border-color: var(--accent-color);
}

/* Botão de Entrar */
#login-button {
  width: 100%;
  padding: 14px 20px;
  border-radius: 50px;
  border: none;
  background-color: var(--accent-color);
  color: var(--primary-text);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
}

#login-button:hover {
  background-color: var(--accent-color-hover);
}

/* Botão do Google */
.google-button {
  width: 100%;
  padding: 14px 20px;
  border-radius: 50px;
  border: none;
  background-color: var(--google-btn-bg);
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.google-button:hover {
  background-color: var(--google-btn-hover);
}

.google-button img {
  width: 20px;
  height: 20px;
}

/* Separador "ou" */
.separator {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--secondary-text);
  font-size: 14px;
  margin: 20px 0;
}

.separator::before,
.separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #404040;
}

.separator:not(:empty)::before {
  margin-right: .5em;
}

.separator:not(:empty)::after {
  margin-left: .5em;
}

/* Estilo para mensagens */
.error-message {
  color: #ff5757;
  text-align: center;
  font-size: 14px;
  min-height: 1em;
  /* Garante que o layout não pule quando a mensagem aparece */
}

/* Estilo para links */
.forgot-password-link,
.back-to-login-link {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
}

.forgot-password-link a,
.back-to-login-link a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s;
}

.forgot-password-link a:hover,
.back-to-login-link a:hover {
  color: var(--accent-color-hover);
  text-decoration: underline;
}

/* =================================================================
    Estilos para os Modais Customizados
    ================================================================= */
.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: #282828;
  padding: 25px 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  color: #e0e0e0;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.8);
  border: 1px solid #333;
}

.modal-content h2 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.4em;
  color: #fff;
}

.modal-content p {
  margin: 15px 0;
  font-size: 1em;
  line-height: 1.5;
  color: #b3b3b3;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}

.modal .control-button {
  padding: 10px 25px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-size: 1em;
  font-weight: bold;
  transition: background-color 0.2s;
}

.modal .control-button.primary {
  background-color: var(--accent-color);
  color: var(--primary-text);
}

.modal .control-button.primary:hover {
  background-color: var(--accent-color-hover);
}

.modal .control-button.secondary {
  background-color: #535353;
  color: var(--primary-text);
}

.modal .control-button.secondary:hover {
  background-color: #737373;
}