@import url('https://fonts.googleapis.com/css2?family=Caveat&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: #fdf6e3 url('/static/usuarios/img/bg_home_1200.webp') repeat-y top center;
  background-size: cover;
  color: #3e3e3e;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

h1 {
  font-family: 'Caveat', cursive;
  font-size: 2.8rem;
  color: #1e6091;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  text-align: center;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.05);
  position: relative;
}

h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background-color: #1e6091;
  margin: 0.3rem auto 0;
  border-radius: 2px;
}

p.slogan {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #5e5e5e;
  text-align: center;
  font-style: italic;
}

.login-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 900px;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(1px);
  border-left: 5px solid #8ecae6;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
}

.login-image {
  width: 100%;
  background-color: #e6f2fb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.login-image img {
  width: 100%;
  max-width: 300px;
}

.login-form {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.form-group input[type="email"],
.form-group input[type="password"] {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #fffaf0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
  border-color: #1e6091;
  outline: none;
  box-shadow: 0 0 0 2px #cce3f2;
}

.lembrar-me {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.login-links {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.95rem;
}

p a {
  margin: 0 0.5rem;
  transition: color 0.3s;
}

p a:hover {
  color: #ef476f;
  text-decoration: none;
}


a,
a:visited,
a:active,
a:focus {
  all: unset; /* limpa todos os estilos padrão */
  color: #1e6091;
  cursor: pointer; /* se quiser manter o cursor de link */
  text-decoration: none;
}

.toast-container {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
}

.toast-success {
  background-color: #d1e7dd;
  color: #0f5132;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .login-wrapper {
    flex-direction: row;
  }

  .login-image,
  .login-form {
    flex: 1;
  }

  .login-image {
    padding: 2rem;
  }

  .login-form {
    padding: 3rem;
  }

  h1 {
    font-size: 3rem;
  }

  p.slogan {
    font-size: 1.1rem;
  }
}
