* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", Arial, sans-serif;
}

body {
  background: linear-gradient(135deg, #f6f4ff, #ece8ff);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER */
.header {
  width: 100%;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 16px 60px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  z-index: 10;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header-logo img {
  width: 60px;
}

.header-logo span {
  font-size: 18px;
  font-weight: 600;
  color: #3c3c3c;
}

/* LOGIN CONTAINER */
.login-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 40px;
}

.login-container {
  background: #fff;
  border-radius: 16px;
  padding: 50px 40px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 8px 30px rgba(127, 34, 254, 0.1);
  text-align: center;
  animation: fadeIn 0.8s ease forwards;
}

h1 {
  font-size: 26px;
  color: #111827;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 30px;
}

/* FORM */
form {
  display: flex;
  flex-direction: column;
  text-align: left;
}

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

input {
  padding: 12px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  font-size: 15px;
  margin-bottom: 18px;
  transition: all 0.2s ease;
}

input:focus {
  border-color: #7f22fe;
  box-shadow: 0 0 0 3px rgba(127, 34, 254, 0.1);
  outline: none;
}

/* LINKS */
.forgot-link {
  font-size: 13px;
  color: #7f22fe;
  text-align: right;
  margin-top: -8px;
  margin-bottom: 25px;
  display: block;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-link:hover {
  color: #9b4dff;
}

/* BUTTONS */
.btn-primary {
  background: linear-gradient(135deg, #7f22fe, #9b4dff);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(127, 34, 254, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(127, 34, 254, 0.4);
  background: linear-gradient(135deg, #9b4dff, #7f22fe);
}

.btn-secondary {
  display: block;
  text-align: center;
  background: transparent;
  border: 2px solid #7f22fe;
  color: #7f22fe;
  padding: 10px;
  border-radius: 10px;
  margin-top: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: #7f22fe;
  color: #fff;
  box-shadow: 0 4px 12px rgba(127, 34, 254, 0.3);
}

/* POPUP DE ERRO */
.error-popup {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #ff3b3b;
  color: white;
  padding: 14px 20px;
  border-radius: 10px;
  font-weight: 600;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(255, 59, 59, 0.3);
  animation: slideIn 0.4s ease;
}

/* ANIMAÇÕES */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* RESPONSIVIDADE */
@media (max-width: 480px) {
  .login-container {
    padding: 40px 25px;
  }

  h1 {
    font-size: 22px;
  }
}
