* {
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  margin: 0;
  background: url('/assets/images/login-images/fundo-petagenda.jpg') no-repeat center center fixed;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 20px;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 0;
}

.login-box {
  background-color: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 12px 24px rgba(119, 88, 217, 0.15);
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.login-box h2 {
  margin-bottom: 24px;
  color: #7758d9;
  text-align: center;
  font-weight: 600;
}

.logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.logo img {
  width: 60px;
  height: auto;
  animation: girar 5s linear infinite;
}

@keyframes girar {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

label {
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
  color: #333;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus {
  border-color: #7758d9;
  box-shadow: 0 0 0 3px rgba(119, 88, 217, 0.1);
  outline: none;
}

.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #7758d9;
}

/* Novo botão de login */
.btn-login {
  width: 100%;
  padding: 12px;
  background-color: #7758d9;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-login:hover {
  background-color: #5e42b8;
}

.footer {
  text-align: right;
  font-size: 12px;
  color: #999;
  margin-top: 40px;
  line-height: 1.4;
  font-weight: normal;
}

.footerHml {
  text-align: right;
  font-size: 12px;
  color: #ff0000;
  margin-top: 40px;
  line-height: 1.4;
  font-weight: normal;
}

.loader {
  display: none;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #7758d9;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
  margin: 10px auto 0;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 480px) {
  .login-box {
    padding: 24px;
  }

  .logo img {
    width: 50px;
  }
}
