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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.login-header {
  position: fixed;
  top: 0;
  right: 0;
  padding: 20px 40px;
  z-index: 100;
}

.stats-link {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 10px 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.stats-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.login-container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

.login-box {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-box h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
  font-size: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
}

.btn-primary,
.btn-hemis {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background: #667eea;
  color: white;
  margin-bottom: 15px;
}

.btn-primary:hover {
  background: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-hemis {
  background: #f5f5f5;
  color: #999;
  position: relative;
}

.btn-hemis:hover {
  background: #e8e8e8;
}

.badge {
  position: absolute;
  top: -8px;
  right: 10px;
  background: #ff6b6b;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
}

.error-message {
  margin-top: 15px;
  padding: 12px;
  border-radius: 8px;
  background: #fee;
  color: #c33;
  text-align: center;
  display: none;
}

.error-message.show {
  display: block;
}

/* Adding responsive styles for mobile devices */
@media (max-width: 768px) {
  .login-header {
    padding: 15px 20px;
  }

  .stats-link {
    font-size: 14px;
    padding: 8px 16px;
  }

  .login-container {
    padding: 15px;
  }

  .login-box {
    padding: 30px 20px;
  }

  .login-box h1 {
    font-size: 24px;
  }

  .form-group input {
    padding: 10px;
  }

  .btn-primary,
  .btn-hemis {
    padding: 12px;
    font-size: 14px;
  }
}

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

  .login-box h1 {
    font-size: 22px;
  }

  .stats-link {
    font-size: 13px;
    padding: 6px 12px;
  }
}
