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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, #4B0082 0%, #1E1E4B 100%);
  min-height: 100vh;
  color: #fff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 80px 20px;
}

.login-container {
  width: 100%;
  max-width: 400px;
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  background-color: transparent;
  animation: fadeSlideUp 0.7s ease-out forwards;
}

.logo {
  display: block;
  margin: 0 auto 20px;
  max-width: 150px;
  opacity: 0;
  animation: fadeSlideIn 0.6s ease-out forwards 0.2s;
}

.welcome-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fadeSlideIn 0.7s ease-out forwards 0.35s;
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #333;
  color: #fff;
  transition: border-color 0.3s ease;
}

input::placeholder {
  color: #ccc;
  opacity: 0.7;
  transition: opacity 0.4s ease;
}

input:focus {
  outline: none;
  border-color: #9370DB;
}

input:focus::placeholder {
  opacity: 0.5;
}

.password-container {
  position: relative;
  width: 100%;
}

.password-container input {
  padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 0;
    bottom: 0;
    margin: auto 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: fit-content;
    z-index: 10;
    color: #ccc;
}

.toggle-password:hover {
  color: #fff;
}

.login-btn {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  color: #fff;
  background-color: #6A5ACD;
  margin-top: 6px;
  opacity: 0;
  animation: fadeSlideUp 0.6s ease-out forwards 0.65s;
}

.login-btn:hover {
  background-color: #483D8B;
}

.switch-link {
  margin-top: 18px;
  font-size: 0.9rem;
  opacity: 0;
  animation: fadeSlideUp 0.6s ease-out forwards 0.8s;
}

.switch-link a {
  color: #87CEEB;
  text-decoration: none;
  font-weight: 600;
}

/* Animações padronizadas (consistentes com outras páginas) */
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Aplicação progressiva aos campos do form */
form input,
form .password-container {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.6s ease-out forwards;
}

form input:nth-of-type(1) { animation-delay: 0.45s; }
form input:nth-of-type(2) { animation-delay: 0.55s; }
form .password-container { animation-delay: 0.65s; }