* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background: #1a1b29;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 20px;
  z-index: 10;
}

.login-card {
  background: #252640;
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4CAF50, #2196F3, #FF9800);
}

.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: #252640;
  padding: 15px 20px;
  border-radius: 15px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
}

.logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.login-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.login-header p {
  font-size: 14px;
  color: #7f8c8d;
  font-weight: 500;
}

.login-form {
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.input-container i {
  position: absolute;
  left: 15px;
  color: #7f8c8d;
  font-size: 20px;
  z-index: 2;
}

.input-container input {
  width: 100%;
  padding: 15px 15px 15px 50px;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  font-size: 16px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  transition: all 0.3s ease;
  outline: none;
}

.input-container input:focus {
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.input-container input::placeholder {
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}

.toggle-password {
  position: absolute;
  right: 15px;
  background: none;
  border: none;
  color: #7f8c8d;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 2;
}

.toggle-password:hover {
  background: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.remember-me {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #7f8c8d;
  font-weight: 500;
}

.remember-me input {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  margin-right: 8px;
  position: relative;
  transition: all 0.3s ease;
}

.remember-me input:checked + .checkmark {
  background: #4CAF50;
  border-color: #4CAF50;
}

.remember-me input:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.forgot-password {
  color: #4CAF50;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: #45a049;
  text-decoration: underline;
}

.login-btn {
  width: 100%;
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  border: none;
  padding: 15px 20px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.login-btn:active {
  transform: translateY(0);
}

.login-btn i {
  font-size: 20px;
}

.login-footer {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.login-footer p {
  font-size: 12px;
  color: #7f8c8d;
  font-weight: 400;
}

/* Decoração de fundo */
.background-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

.circle-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  left: -50px;
  animation-delay: 0s;
}

.circle-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: -30px;
  animation-delay: 2s;
}

.circle-3 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Toast notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #252640;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 16px 20px;
  display: none;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  max-width: 400px;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  border: 1px solid rgba(255,255,255,0.1);
}

.toast.show {
  display: flex;
  transform: translateX(0);
}

.toast.success {
  border-left: 4px solid #4CAF50;
}

.toast.error {
  border-left: 4px solid #f44336;
}

.toast.warning {
  border-left: 4px solid #ff9800;
}

.toast-icon {
  font-size: 20px;
}

.toast.success .toast-icon {
  color: #4CAF50;
}

.toast.error .toast-icon {
  color: #f44336;
}

.toast.warning .toast-icon {
  color: #ff9800;
}

.toast-message {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.toast-close {
  background: none;
  border: none;
  color: #7f8c8d;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.toast-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Responsive */
@media screen and (max-width: 768px) {
  body {
    padding: 10px;
  }
  
  .login-container {
    padding: 10px;
    max-width: 100%;
  }
  
  .login-card {
    padding: 25px 20px;
    border-radius: 15px;
  }
  
  .login-header h1 {
    font-size: 18px;
    line-height: 1.3;
  }
  
  .login-header p {
    font-size: 13px;
  }
  
  .logo-container {
    padding: 10px 15px;
    margin-bottom: 15px;
  }
  
  .logo {
    height: 40px;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .input-container input {
    padding: 12px 12px 12px 45px;
    font-size: 16px; /* Previne zoom no iOS */
  }
  
  .form-options {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 25px;
  }
  
  .login-btn {
    padding: 12px 20px;
    font-size: 15px;
  }
  
  .toast {
    right: 10px;
    left: 10px;
    max-width: none;
    top: 10px;
    padding: 12px 15px;
  }
  
  .toast-message {
    font-size: 13px;
  }
}

@media screen and (max-width: 480px) {
  .login-container {
    padding: 5px;
  }
  
  .login-card {
    padding: 20px 15px;
  }
  
  .login-header h1 {
    font-size: 16px;
  }
  
  .logo-container {
    padding: 8px 12px;
  }
  
  .logo {
    height: 35px;
  }
}

/* Loading state */
.login-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.login-btn.loading span {
  display: none;
}

.login-btn.loading::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
